-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevicelab.sublime-workspace
386 lines (386 loc) · 11.5 KB
/
devicelab.sublime-workspace
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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
{
"auto_complete":
{
"selected_items":
[
[
"tex",
"text-align"
],
[
"text",
"text-indent"
],
[
"backgr",
"background-position"
],
[
"bt",
"bt-download.jpg w:202 h:114"
],
[
"bac",
"background"
],
[
"marg",
"margin"
],
[
"h",
"h4 Tag"
],
[
"p",
"p Tag"
],
[
"border",
"border-top"
],
[
"mar",
"margin-top"
],
[
"bt-",
"bt-menu-contato.jpg w:226 h:99"
],
[
"back",
"background-image"
],
[
"ba",
"background-position"
],
[
"conteudo",
"conteudo1"
],
[
"fade",
"fadeIn"
],
[
"navega",
"navegacaoAbas"
],
[
"padd",
"padding"
],
[
"pa",
"padding"
],
[
"pad",
"padding"
],
[
"bor",
"border-top"
],
[
"fun",
"function"
],
[
"wi",
"width"
],
[
"font",
"font-weight"
],
[
"list",
"list-style-type"
],
[
"u",
"ul Tag"
],
[
"lo",
"Logo-Coppead-Rodape.jpg w:192 h:191"
],
[
"hei",
"height"
],
[
"b",
"br Tag"
],
[
"re",
"resumo"
],
[
"margin",
"margin-left"
],
[
"ma",
"margin-left"
]
]
},
"buffers":
[
{
"file": "index.html",
"settings":
{
"buffer_size": 14744,
"line_ending": "Unix"
}
},
{
"file": "css/style.css",
"settings":
{
"buffer_size": 9881,
"line_ending": "Unix"
}
},
{
"contents": "//Carrega mapa do google\nfunction initialize() {\n var mapDiv = document.getElementById('mapa');\n var coordenadas = new google.maps.LatLng(-23.004250,-43.325294);\n var map = new google.maps.Map(mapDiv, {\n center: coordenadas,\n zoom: 16,\n scrollwheel: false,\n \n panControl: true,\n panControlOptions: {\n position: google.maps.ControlPosition.TOP_RIGHT\n },\n \n zoomControl: true,\n zoomControlOptions: {\n style: google.maps.ZoomControlStyle.SMALL,\n position: google.maps.ControlPosition.TOP_RIGHT\n },\n \n scaleControl: false,\n mapTypeId: google.maps.MapTypeId.ROADMAP,\n disableDefaultUI: true\n });\n var marker = new google.maps.Marker({\n position: coordenadas,\n map: map,\n icon: 'img/mapa-marcador.png', \n title:\"DeviceLab\"\n });\n};\n\n//Exibir e esconder os controles do mapa\nfunction menuMapa(){\n $(\"#fale-conosco\").hover(\n function(){\n $(\".gmnoprint\").fadeIn(\"fast\");\n },\n function(){\n $(\".gmnoprint\").fadeOut(\"fast\");\n }\n );\n};\n \n\n//Scrola a página para o conteúdo/id relacionado ao ítem de menu clicado\nfunction MenuDeAncoras(){\n $('.menu, #logo2, #logo3').click(function(event){\n event.preventDefault();\n \n var ancora = $(this).attr('href');\n \n $('.menu').removeClass('active');\n $('html, body').stop().animate({\n scrollTop: $(ancora).offset().top+10\n }, 750,'easeInOutQuint');\n $(this).addClass('active');\n });\n};\n\n//Exibe e marca o menu de acordo com o conteúdo/id apresentado\nfunction MarcaMenu(){\n var apresentacaoH = $('#apresentacao').offset().top;\n var projetosH = $('#projetos').offset().top;\n var pesquisasH = $('#pesquisas').offset().top;\n var namidiaH = $('#na-midia').offset().top;\n var faleconoscoH = $('#fale-conosco').offset().top;\n \n if($(document).scrollTop() >= apresentacaoH-99 && $(document).scrollTop() < projetosH){\n $(\".menu\").removeClass('active');\n $('.dl').addClass('active');\n $('.qvoa').slideDown('fast');\n }\n else if($(document).scrollTop() >= projetosH && $(document).scrollTop() < pesquisasH){\n $(\".menu\").removeClass('active');\n $('.lp').addClass('active');\n $('.qvoa').slideDown('fast');\n }\n else if($(document).scrollTop() >= pesquisasH && $(document).scrollTop() < namidiaH){\n $(\".menu\").removeClass('active');\n $('.pesq').addClass('active');\n $('.qvoa').slideDown('fast');\n }\n else if($(document).scrollTop() >= namidiaH && $(document).scrollTop() < faleconoscoH){\n $(\".menu\").removeClass('active');\n $('.mid').addClass('active');\n $('.qvoa').slideDown('fast');\n }\n else if($(document).scrollTop() >= faleconoscoH){\n $(\".menu\").removeClass('active');\n $('.fc').addClass('active');\n $('.qvoa').slideDown('fast');\n }\n else if($(document).scrollTop() < apresentacaoH-99){\n $(\".menu\").removeClass('active');\n $('.qvoa').slideUp('fast');\n }\n};\n\n\n//Exibe o vídeo do topo\nfunction mostraVideo(){\n $('#mostra-video').click(function(e){\n e.preventDefault();\n \n $('#mostra-video').fadeOut('fast');\n $('#foto-topo').addClass('comvideo').find('.wrap').stop().animate({height: 540}, 750,'easeInOutQuint');\n $('#foto-topo').children('.wrap').append('<iframe id=\"video\" src=\"http://player.vimeo.com/video/56758941?title=0&byline=0&portrait=0&color=ee2c43&autoplay=1\" width=\"960\" height=\"540\" frameborder=\"0\" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>')\n carregaLegenda();\n });\n};\n\n//Carrega a legenda do vídeo\nfunction carregaLegenda(){\n $.ajax({ method: 'get', url: 'eng/subtitle.srt', success: parseSubtitles});\n\n var subtitles = [] \n function parseSubtitles(srt) \n { \n var records = srt.replace(/(\\r\\n|\\r|\\n)/g, '\\n').split('\\n\\n') \n var r = 0 \n $(records).each(function(i) \n { \n subtitles[r] = [] \n return (subtitles[r++] = records[i].split('\\n')) \n }) \n }\n\n var vimeoPlayer = $('#video')\n Froogaloop(vimeoPlayer).addEvent('playProgress', onPlayProgress)\n\n var subcount = 0 \n\n function onPlayProgress(data) \n { \n var subtitle = []\n var seconds = Number(data.seconds).toFixed(1) \n var min = timecodeFrom(subtitles[subcount][1]) \n var max = timecodeTo(subtitles[subcount][1]) \n\n if (seconds > min && seconds < max) { subtitle = subtitles[subcount][2] }\n else if (seconds > max && subcount < (subtitles.length - 1)){ subcount++ } \n\n $('#subtitles').html(subtitle)\n }\n\n function timecodeFrom(timecode) \n {\n var timecodePair = timecode.split(' —> ') \n return timecodeSeconds(timecodePair[0]) \n } \n\n function timecodeTo(timecode) \n { \n var timecodePair = timecode.split(' —> ') \n return timecodeSeconds(timecodePair[1]) \n } \n\n function timecodeSeconds(timecode) \n { \n var secs, timecode1, timecode2 \n timecode1 = timecode.split(',') \n timecode2 = timecode1[0].split(':') \n return (secs = Math.floor(timecode2[0] * 60 * 60) + Math.floor(timecode2[1] * 60) + Math.floor(timecode2[2])) \n } \n};\n\n//Slides de #faça uma visita\nfunction slider(){\n var larguraViewport = $(window).width();\n var pedacoDeCodigo = '<div class=\"slides_container\"><div class=\"tres\" style=\"background:url(img/slide1.jpg) center top no-repeat;\"></div><div class=\"dois\" style=\"background:url(img/slide2.jpg) center top no-repeat;\"></div><div class=\"um\" style=\"background:url(img/slide3.jpg) center top no-repeat;\"></div></div>';\n \n $(\"#slider\").empty().html(pedacoDeCodigo);\n $(\".slides_container, .slides_container div\").width(larguraViewport); \n $(\"#slider\").slides({\n effect: 'fade',\n play: 5000,\n fadeEasing: \"easeOutQuad\",\n fadeSpeed: 150,\n bigTarget: true\n });\n};\n\n//Evento no analytics para os cliques no play do vídeo\nfunction playEventTracker(){\n $('mostra-video').click( function(){\n gaq.push(['_trackEvent', 'vídeo', 'visualizado']);\n });\n};\n\n\n//Ao terminar de carregar todos os elementos da página\n$(document).ready(function() {\n initialize();\n MarcaMenu();\n MenuDeAncoras();\n //MenuQVoa(); \n mostraVideo();\n slider();\n menuMapa();\n playEventTracker();\n\n //Ao scrollar a página\n $(window).bind('scroll',function(e){\n MarcaMenu();\n //MenuQVoa();\n });\n \n //Ao redimensionar a janela\n $(window).resize(function() {\n initialize();\n slider();\n }); \n \n});",
"file": "js/main.js",
"file_size": 6095,
"file_write_time": 1371264541000000,
"settings":
{
"buffer_size": 6049,
"line_ending": "Unix"
}
}
],
"build_system": "",
"command_palette":
{
"height": 392.0,
"selected_items":
[
[
"pa",
"Package Control: Install Package"
],
[
"",
"Package Control: Add Repository"
]
],
"width": 575.0
},
"console":
{
"height": 125.0
},
"distraction_free":
{
"menu_visible": true,
"show_minimap": false,
"show_open_files": false,
"show_tabs": false,
"side_bar_visible": false,
"status_bar_visible": false
},
"file_history":
[
"/Users/felipepvc/Sites/Coppead/aluno-turmanova.html",
"/Users/felipepvc/Sites/Coppead/aluno-turmaantiga.html",
"/Users/felipepvc/Sites/Coppead/style.css",
"/Users/felipepvc/Sites/Coppead/js/main.js",
"/Users/felipepvc/Sites/Coppead/Aluno-turmaAntiga.html",
"/Users/felipepvc/Sites/Coppead/index.html",
"/Users/felipepvc/Sites/Coppead/turma-antiga.html",
"/Users/felipepvc/Sites/Coppead/robots.txt",
"/Users/felipepvc/Sites/Coppead/README.md",
"/private/etc/hosts",
"/Volumes/HD Felipe/JOBS/Coppead/FrontEnd/style.css",
"/Volumes/HD Felipe/JOBS/Coppead/FrontEnd/index.html",
"/Users/felipepvc/Library/Application Support/Sublime Text 2/Packages/Package Control/Package Control.sublime-settings"
],
"find":
{
"height": 0.0
},
"find_in_files":
{
"height": 0.0,
"where_history":
[
]
},
"find_state":
{
"case_sensitive": false,
"find_history":
[
],
"highlight": true,
"in_selection": false,
"preserve_case": false,
"regex": false,
"replace_history":
[
],
"reverse": false,
"show_context": true,
"use_buffer2": true,
"whole_word": false,
"wrap": true
},
"groups":
[
{
"selected": 2,
"sheets":
[
{
"buffer": 0,
"file": "index.html",
"settings":
{
"buffer_size": 14744,
"regions":
{
},
"selection":
[
[
14114,
14190
]
],
"settings":
{
"syntax": "Packages/HTML/HTML.tmLanguage",
"tab_size": 4,
"translate_tabs_to_spaces": true
},
"translation.x": 0.0,
"translation.y": 3968.0,
"zoom_level": 1.0
},
"type": "text"
},
{
"buffer": 1,
"file": "css/style.css",
"settings":
{
"buffer_size": 9881,
"regions":
{
},
"selection":
[
[
8607,
8716
]
],
"settings":
{
"syntax": "Packages/CSS/CSS.tmLanguage"
},
"translation.x": 0.0,
"translation.y": 1044.0,
"zoom_level": 1.0
},
"type": "text"
},
{
"buffer": 2,
"file": "js/main.js",
"settings":
{
"buffer_size": 6049,
"regions":
{
},
"selection":
[
[
3864,
3864
]
],
"settings":
{
"syntax": "Packages/JavaScript/JavaScript.tmLanguage",
"translate_tabs_to_spaces": false
},
"translation.x": 0.0,
"translation.y": 1844.0,
"zoom_level": 1.0
},
"type": "text"
}
]
}
],
"incremental_find":
{
"height": 0.0
},
"input":
{
"height": 33.0
},
"layout":
{
"cells":
[
[
0,
0,
1,
1
]
],
"cols":
[
0.0,
1.0
],
"rows":
[
0.0,
1.0
]
},
"menu_visible": true,
"replace":
{
"height": 0.0
},
"save_all_on_build": true,
"select_file":
{
"height": 0.0,
"selected_items":
[
],
"width": 0.0
},
"select_project":
{
"height": 0.0,
"selected_items":
[
],
"width": 0.0
},
"show_minimap": true,
"show_open_files": true,
"show_tabs": true,
"side_bar_visible": true,
"side_bar_width": 186.0,
"status_bar_visible": false
}