<commit_before># Resume of projet's progress
## 03/10/2017

1. A second window is popping when clicking on a "new door" button in carousel. To allow that, I tried different things.
	+ make buttons send msg to mainProcess
		1. first in the script.js I used `$('.btn-add-door').click(function(){...})` but it doesn't worked
		2. So I replace the .click event by a function declared at the begining of `script.js`and use HTML `onclick='myfunction()'` to make it work. It didn't work too but I got erro in dev tool. I caught something!
		3. The function use ipcRenderer which is declared and called in index.html not in script.js so I decided to move my function in index.html and then it worked!
	+ Create new window in main.js
		1. First, I coded a second function like `createMainWindow()` where I created the child window and tried to make it pop when ipcMain catch asynchronous message send from index.html. But it didn't work.
		2. Look on the web and I found that I have to create the child window in the same function as the main window.
		3. Then it work not as expected because I  switched event and arg in use of `ipcMain.on(asynchronous-message, function(event, arg){...})` and now it works.
	+ Create base of the interface of child window
2. I justed notice that my sublim text3 isn't showing `.db`file
3. Just discover that I can call child window only one time... Issue's trace told that object has been destroyed.

_NB: I know that's ugly but work is still in progress!_

___screenshot of current result:___
main window
---
![alt text](https://github.com/vince-bourgmayer/electron-test/blob/master/project-management/img/mainWindow.dev.031017.png "main window")

child window
---
![alt text](https://github.com/vince-bourgmayer/electron-test/blob/master/project-management/img/doorCreationWindow.dev.031017.png "Door's creation window")




## 02/10/2017
I don't need to use DB in main process but in renderer process. So i commented previous code in main.js
then I started to call nedb in script.js

1. I created a function to get html from locked door object for slick. I did unit test to create this function but i only use two basic case so i'm not really happy of it... But I understand a little better how to use it.
At this step I wondered if :
	+ I should use jquery to move "addDoorButton" when slide change.
	or
	+ I should but a button on each slide and hide them except if it is the current slide.
<commit_msg>corrected resume.md error on picture url<commit_after># Resume of projet's progress
## 03/10/2017

1. A second window is popping when clicking on a "new door" button in carousel. To allow that, I tried different things.
	+ make buttons send msg to mainProcess
		1. first in the script.js I used `$('.btn-add-door').click(function(){...})` but it doesn't worked
		2. So I replace the .click event by a function declared at the begining of `script.js`and use HTML `onclick='myfunction()'` to make it work. It didn't work too but I got erro in dev tool. I caught something!
		3. The function use ipcRenderer which is declared and called in index.html not in script.js so I decided to move my function in index.html and then it worked!
	+ Create new window in main.js
		1. First, I coded a second function like `createMainWindow()` where I created the child window and tried to make it pop when ipcMain catch asynchronous message send from index.html. But it didn't work.
		2. Look on the web and I found that I have to create the child window in the same function as the main window.
		3. Then it work not as expected because I  switched event and arg in use of `ipcMain.on(asynchronous-message, function(event, arg){...})` and now it works.
	+ Create base of the interface of child window
2. I justed notice that my sublim text3 isn't showing `.db`file
3. Just discover that I can call child window only one time... Issue's trace told that object has been destroyed.

_NB: I know that's ugly but work is still in progress!_

___screenshot of current result:___
main window
---
![alt text](https://github.com/vince-bourgmayer/electron-test/blob/master/project-management/img/mainWindow.dev.031017.JPG "main window")

child window
---
![alt text](https://github.com/vince-bourgmayer/electron-test/blob/master/project-management/img/doorCreationWindow.dev.031017.JPG "Door's creation window")




## 02/10/2017
I don't need to use DB in main process but in renderer process. So i commented previous code in main.js
then I started to call nedb in script.js

1. I created a function to get html from locked door object for slick. I did unit test to create this function but i only use two basic case so i'm not really happy of it... But I understand a little better how to use it.
At this step I wondered if :
	+ I should use jquery to move "addDoorButton" when slide change.
	or
	+ I should but a button on each slide and hide them except if it is the current slide.

{'fraction_non_alphanumeric': 0.07538304392236976, 'fraction_numerical': 0.015934627170582225, 'mean_word_length': 3.804710500490677, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6284558', 'n_tokens_mistral': 1454, 'n_tokens_neox': 1355, 'n_words': 751}