-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathworkingDirectories.html
More file actions
143 lines (140 loc) · 2.71 KB
/
workingDirectories.html
File metadata and controls
143 lines (140 loc) · 2.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<html>
<head>
<title>
Choix du répertoire de travail
</title>
<script
src="./js/creojs.js"
>
</script>
<script
type="text/creojs"
src="./js/browser.creojs"
>
</script>
<script
src="./js/myWorkingDirectories.js"
>
</script>
<script
type="text/creojs"
src="./js/workingDirectories.creojs"
>
</script>
<link
rel="stylesheet"
href="./css/colorsVariables.css"
>
<link
rel="stylesheet"
href="./css/general.css"
>
<link
rel="stylesheet"
href="./css/buttons.css"
>
<link
href="./css/icons.css"
rel="stylesheet"
>
<link
rel="stylesheet"
href="./css/myWorkingDirectories.css"
>
<link
rel="stylesheet"
href="./css/navbar.css"
>
<link
rel="stylesheet"
href="./css/tables.css"
>
</head>
<body
onload="CreoJS.$ADD_ON_LOAD(initialize)">
<nav
id="main-navbar"
class="navbar"
>
</nav>
<script
src="./js/navbarButtons.js">
</script>
<script
src="./js/navbarGenerator.js">
</script>
<!-- <div -->
<!-- class="info-item" -->
<!-- > -->
<!-- <strong -->
<!-- class="info-title" -->
<!-- > -->
<!-- Répertoire de travail: -->
<!-- </strong> -->
<!-- <span -->
<!-- id="workingDirectory" -->
<!-- > -->
<!-- </span> -->
<!-- </div> -->
<div
id="directory-form"
>
<button
class="actionButton"
id="addChoosenDirectory"
onclick="addChoosenDirectory()"
>
Choisir repertoire
</button>
<input
type="text"
id="path-input"
placeholder="Entrer le chemin complet"
>
<br>
<button
class="actionButton"
onclick="addDirectory()"
>
Ajouter
</button>
<input
type="text"
id="description-input"
placeholder="Entrer une description"
>
</div>
<br>
<span>
Choix du répertoire de travail:
</span>
<div
id="directory-list"
>
</div>
<script>
function initialize() {
CreoJS.getCurrentDirectory()
<!-- .then (function(path) { -->
<!-- workingDirectory.innerHTML = path; -->
<!-- }); -->
createDirectoryList();
loadDirectories();
}
function addChoosenDirectory() {
CreoJS.getPath()
.then(function(chosenPath) {
const path = document.getElementById('path-input');
path.value = chosenPath;
const description = document.getElementById('description-input');
description.value = '';
description.focus();
description.select();
})
.catch(function(error) {
console.error('Error getting path:', error);
});
}
</script>
</body>
</html>