-
Notifications
You must be signed in to change notification settings - Fork 0
/
tutorial.html
192 lines (161 loc) · 8.37 KB
/
tutorial.html
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title> PImage - Tutorial </title>
</head>
<body>
<div class="content">
<!-- Start -->
<div class="title"> PImage - Pins In Image </div>
<div class="description"> To add pin in images in a responsive and dynamic way, PImage has two versions, one for
edit and one for view. </div>
<div class="images">
<img src="https://codedbyissa.github.io/PImage/images/edit.png" alt="edit version">
<img src="https://codedbyissa.github.io/PImage/images/view.png" alt="view version">
</div>
<div class="title">
<ul>
<li> <a href="#1"> Adding Pins </a> </li>
<li> <a href="#2"> Move you pins </a> </li>
<li> <a href="#3"> Delete you pins </a> </li>
<li> <a href="#4"> Edit the name of your pins </a> </li>
<li> <a href="#5"> Search, filter and locate your pins </a> </li>
<li> <a href="#6"> Show and hide your pin names </a> </li>
<li> <a href="#7"> Shortcut to the other mode </a> </li>
</ul>
</div>
<!-- Adding Pins -->
<div class="title" id="1"> 1. Adding Pins </div>
<div class="description"> to add pins in edit mode, just click on the desired location inside the image and that's
it! </div>
<div class="image">
<img src="https://codedbyissa.github.io/PImage/images/editAdd.png" alt="adding pins">
</div>
<div class="description"> already in view mode, it is necessary to add the pins directly to the array of the
index.html file, insert the sequential number id, name of your choice, x coordinates and y coordinates from 1 to
100. </div>
<div class="image">
<img src="https://codedbyissa.github.io/PImage/images/viewAdd.png" alt="adding pins in view mode">
</div>
<!-- Move you pins -->
<div class="title" id="2"> 2. Move you pins </div>
<div class="description"> to move a pin in edit mode just select it (just click on it), drag it with the mouse and drop it where you want. </div>
<div class="image">
<img src="https://codedbyissa.github.io/PImage/images/editMove.png" alt="move you pins">
</div>
<div class="description"> or you can use the controls on the left corner of the screen (ideal for touchscreen devices). In view mode modify the x and y coordinates of pin until you are satisfied with the new location. </div>
<div class="image">
<img src="https://codedbyissa.github.io/PImage/images/editMoveControls.png" alt="move you pins with controls">
</div>
<!-- Delete you pins -->
<div class="title" id="3"> 3. Delete you pins </div>
<div class="description"> you can delete a pin just by selecting it and clicking on the trash can button. this button is located inside the hidden menu in the right corner of the screen, click on the ellipsis icon button to activate it. to delete a pin in edit mode there is no secret, go to the array and delete the desired pin object. </div>
<div class="image">
<img src="https://codedbyissa.github.io/PImage/images/editDelete.png" alt="delete you pins">
</div>
<!-- Edit the name of your pins -->
<div class="title" id="4"> 4. Edit the name of your pins </div>
<div class="description"> it is possible to edit the name of a pin as many times as you want, select it and click on the button with the pencil icon inside the hidden menu. </div>
<div class="image">
<img src="https://codedbyissa.github.io/PImage/images/editName.png" alt="search icon">
</div>
<div class="description"> an editing screen will be activated, fill it with the desired name and save. for view mode, change directly the name inside the object of the pin you want to modify. </div>
<div class="image">
<img src="https://codedbyissa.github.io/PImage/images/editName(2).png" alt="search icon">
</div>
<!-- Search, filter and locate your pins -->
<div class="title" id="5"> 5. Search, filter and locate your pins </div>
<div class="description"> the search and filter feature in the edit version can be found in the hidden menu and activated in the magnifying glass icon button. already in the view version it replaced the hidden menu, being necessary only to click on the same button in the right corner of the screen to activate it. </div>
<div class="image">
<img src="https://codedbyissa.github.io/PImage/images/locate&Search.png" alt="search icon">
</div>
<div class="description"> on the screen that was activated, use the search bar to filter pins by name. </div>
<div class="images">
<img src="https://codedbyissa.github.io/PImage/images/locate&Search(2).png" alt="edit version">
<img src="https://codedbyissa.github.io/PImage/images/locate&Search(3).png" alt="view version">
</div>
<div class="description"> and to locate an pin within the map just press the button next to it. </div>
<div class="image">
<img src="https://codedbyissa.github.io/PImage/images/locate&Search(4).png" alt="search icon">
</div>
<div class="description"> the pin you are looking for will change color, increase and decrease in size frequently to attract attention, if you want to stop this behavior just click on any corner within the image. </div>
<div class="image">
<img src="https://codedbyissa.github.io/PImage/images/locate&Search(5).png" alt="search icon">
</div>
<!-- Search, filter and locate your pins -->
<div class="title" id="6"> 6. Show and hide your pin names </div>
<div class="description"> the eye button in the right corner of the screen, serves to hide the name of the pins when deactivated and show them when activated (by default it is deactivated). </div>
<div class="images">
<img src="https://codedbyissa.github.io/PImage/images/show&Hide(3).png" alt="search icon">
<img src="https://codedbyissa.github.io/PImage/images/show&Hide(2).png" alt="search icon">
<img src="https://codedbyissa.github.io/PImage/images/show&Hide.png" alt="search icon">
</div>
<!-- Search, filter and locate your pins -->
<div class="title" id="7"> 7. Shortcut to the other mode </div>
<div class="description"> I added a button in each mode that maybe isn't very useful, it's a shortcut to the other mode, so if it's in edit mode it's directed to view mode and vice versa (as long as both are in the same folder). </div>
<div class="images">
<img src="https://codedbyissa.github.io/PImage/images/shortcutEdit.png" alt="search icon">
<img src="https://codedbyissa.github.io/PImage/images/shortcutView.png" alt="search icon">
</div>
</div>
<style>
html,
body {
height: 100%;
margin: 0px;
padding: 0px;
background: #e4e9f7;
}
.content {
padding: 60px;
}
.title {
font-size: 40px;
background-color: #f9f7f7;
padding: 15px;
margin: 10px;
border-radius: 2px;
box-shadow: rgb(50 50 93 / 25%) 0px 2px 5px -1px, rgb(0 0 0 / 30%) 0px 1px 3px -1px;
font-family: "Roboto", sans-serif;
}
.title ul {
font-size: 18px;
list-style: decimal;
}
.description {
padding: 10px 10px 10px 10px;
font-size: 20px;
}
.images {
display: flex;
flex-wrap: wrap;
flex-direction: row-reverse;
justify-content: center;
align-content: center;
}
.image {
display: flex;
flex-wrap: wrap;
flex-direction: row-reverse;
justify-content: center;
align-content: center;
}
.images img {
max-width: 40%;
}
.image img {
max-width: 90%;
}
img {
background-color: #0000000a;
box-shadow: rgb(50 50 93 / 25%) 0px 2px 5px -1px, rgb(0 0 0 / 30%) 0px 1px 3px -1px;
border-radius: 2px;
width: auto;
height: 100%;
padding: 10px;
margin: 10px;
}
</style>
</body>
</html>