projekktor-rails 0.0.1 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZmNmOWQ0ZTZiNjllMWE4ZDNkNjY1NDcyNGYwYWQ1MDE5MmE1YzBjNQ==
5
+ data.tar.gz: !binary |-
6
+ ZTFlZjlmNjUyNmZlNzI3MDg1NGE1YmU3MTZhMjRmMzEyMGQ2MWZlZQ==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ OTlkMDhkZDMwYzViYzhjNGU2NjM3ZDZmYjk0MWY5ZDQwODhmZWRiYzVhMDE0
10
+ MzE5NTMyNmY2MTUyODM3ZDFlODhhOWM4YzM0YzlmNzMzOGU2N2JjYjIwNmJh
11
+ MDRhNjhhY2ViM2YxNDVhNDFiYmY1NmZlMDMzNmJmNmM5ZTdhYmI=
12
+ data.tar.gz: !binary |-
13
+ NGEwYmZmZmU1MzM5MDQ5YmU4MjBkZTNjMzdlZGNlY2UxNDhkODAwZjk5YmI4
14
+ YzZmNzZjZjg3ZmVkMDczMTdmZjk4MDdhNjI3ZTIwMzFkMDRkNGQ0OTM4YTQ4
15
+ NjJhYTAwMDVjNmFkYmQxODExZGUxYTUwMjg1ZjFkNjJmZTA2NjY=
@@ -0,0 +1,10 @@
1
+ 0.0.3
2
+ - Projekktor Core Version: V1.2.20 r192
3
+
4
+ 0.0.2
5
+ - use asset helper for background images
6
+ - Projekktor Core Version: V1.2.05 r145
7
+
8
+ 0.0.1
9
+ - initial version
10
+ - Projekktor Core Version: V1.2.01 r130
data/Gemfile CHANGED
@@ -1,4 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
+ gem 'rake'
4
+
3
5
  # Specify your gem's dependencies in projekktor-rails.gemspec
4
6
  gemspec
data/README.md CHANGED
@@ -42,6 +42,6 @@ Add this to your application.css
42
42
  5. Create new Pull Request
43
43
 
44
44
 
45
- Update projekktor from upstream:
45
+ Update projekktor to latest version on [http://www.projekktor.com/](www.projekktor.com/):
46
46
 
47
47
  $ rake update_projekktor
data/Rakefile CHANGED
@@ -10,5 +10,10 @@ task :update_projekktor do
10
10
  mv Dir["/tmp/projekktor/projekktor*.js"].first, "vendor/assets/projekktor/projekktor.js"
11
11
  mv "/tmp/projekktor/jarisplayer.swf", "vendor/assets/projekktor/"
12
12
  mv Dir["/tmp/projekktor/theme/*.{png,gif}"], "vendor/assets/projekktor/"
13
- mv "/tmp/projekktor/theme/style.css", "vendor/assets/projekktor/projekktor.css"
13
+
14
+ css_filepath = '/tmp/projekktor/theme/style.css'
15
+ erb_filepath = 'vendor/assets/projekktor/projekktor.css.erb'
16
+ puts "Compiling #{css_filepath} -> #{erb_filepath}"
17
+ text = File.read(css_filepath).gsub(/url\("([^"]*)"\)/, 'url(<%= asset_path "\1" %>)')
18
+ File.open(erb_filepath, "w") { |file| file.puts text }
14
19
  end
@@ -1,5 +1,5 @@
1
1
  module Projekktor
2
2
  module Rails
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
@@ -0,0 +1,542 @@
1
+ /*
2
+ Theme Name: MACCACO
3
+ Theme URI: http://www.projekktor.com/downloads
4
+ Description: this theme is a screenr clone
5
+ Version: 1.0
6
+ Author: Michel Maillard
7
+ Author URI: http://www.porkhead.org
8
+ */
9
+
10
+
11
+ /***************************************
12
+ general
13
+ ***************************************/
14
+ .projekktor {
15
+ background-color:#000;
16
+ font-family: 'Lucida Grande', 'Trebuchet MS', Arial, Sans-Serif;
17
+ font-size: 12px;
18
+ font-weight: bold;
19
+ text-transform:uppercase;
20
+ text-shadow: 0 1px 1px #0c0c0c;
21
+ padding:0;
22
+ display:block;
23
+ position: relative;
24
+ overflow: hidden;
25
+ }
26
+
27
+ .pptestcard {
28
+ background: url(<%= asset_path "noise.gif" %>) center center repeat;
29
+ width: 100%;
30
+ height: 100%;
31
+ color: #fff;
32
+ font-size: 18px;
33
+ overflow: hidden;
34
+ }
35
+
36
+ .pptestcard p {
37
+ background-color: #3b393e;
38
+ width: 60%;
39
+ margin: auto;
40
+ line-height: 25px;
41
+ position: relative;
42
+ top: 25%;
43
+ padding: 10px;
44
+ border:5px solid #000;
45
+ text-align: center;
46
+ }
47
+
48
+
49
+ /***************************************
50
+ display plugin
51
+ ***************************************/
52
+ .ppdisplay {
53
+ position: relative !important;
54
+ top: 0;
55
+ left: 0;
56
+ width: 100%;
57
+ height: 100%;
58
+ margin: 0;
59
+ padding: 0;
60
+
61
+ }
62
+
63
+ .ppdisplay .inactive,
64
+ .ppstart.inactive,
65
+ .ppbuffering.inactive {
66
+ display: none;
67
+ }
68
+
69
+ .ppstart {
70
+ position: absolute;
71
+ left: 50%;
72
+ bottom: 50%;
73
+ margin-left:-45px;
74
+ margin-bottom: -38px;
75
+ cursor: pointer;
76
+ height: 84px;
77
+ width: 84px;
78
+ display: block;
79
+
80
+ padding: 0px;
81
+ background: url(<%= asset_path "start.png" %>) no-repeat left top transparent;
82
+ }
83
+ .ppstart:hover {
84
+ background: url(<%= asset_path "start.png" %>) no-repeat left bottom transparent;
85
+ }
86
+ .ppstart:active {
87
+ background: url(<%= asset_path "start.png" %>) no-repeat left -169px transparent;
88
+ }
89
+
90
+ .ppbuffering {
91
+ position: absolute;
92
+ left: 50%;
93
+ bottom: 50%;
94
+ margin-left:-45px;
95
+ margin-bottom: -38px;
96
+ display: block;
97
+ z-index:9010;
98
+ padding: 0px;
99
+ background: url(<%= asset_path "buffering.gif" %>) no-repeat center center #000;
100
+ height: 84px;
101
+ width: 84px;
102
+ -moz-border-radius: 15px;
103
+ -webkit-border-radius: 15px;
104
+ border-radius: 15px;
105
+ }
106
+
107
+
108
+ /***************************************
109
+ controlbar plugin
110
+ ***************************************/
111
+ .ppcontrols {
112
+ position: absolute;
113
+ bottom: 0;
114
+ right:0;
115
+ display: block;
116
+ overflow: hidden;
117
+ width: 100%;
118
+ height: 36px;
119
+ background: url(<%= asset_path "player.png" %>) repeat-x scroll 0 0 #0f0e0e;
120
+ border-style:solid;
121
+ border-color:#413e3e;
122
+ border-width:1px 0;
123
+ padding: 0;
124
+ margin:0;
125
+ }
126
+
127
+ .ppcontrols .active {
128
+ display: block;
129
+ }
130
+
131
+ .ppcontrols .inactive {
132
+ display: none;
133
+ }
134
+
135
+ .projekktor.notransitions .ppcontrols.active {
136
+ display: block;
137
+ }
138
+
139
+ .projekktor.notransitions .ppcontrols.inactive {
140
+ display: none;
141
+ }
142
+
143
+
144
+ .ppcontrols.active {
145
+ filter: alpha(opacity=100);
146
+ -moz-opacity: 1;
147
+ -khtml-opacity: 1;
148
+ opacity: 1;
149
+ -webkit-transition: opacity 0.5s linear;
150
+ -moz-transition: opacity 0.5s linear;
151
+ -o-transition: opacity 0.5s linear;
152
+ transition: opacity 0.5s linear;
153
+ }
154
+
155
+
156
+ .ppcontrols.inactive {
157
+ filter: alpha(opacity=0);
158
+ -moz-opacity: 0;
159
+ -khtml-opacity: 0;
160
+ opacity: 0;
161
+ filter: alpha(opacity=0);
162
+ -webkit-transition: opacity 0.5s linear;
163
+ -moz-transition: opacity 0.5s linear;
164
+ -o-transition: opacity 0.5s linear;
165
+ transition: opacity 0.5s linear;
166
+ }
167
+
168
+ .ppcontrols ul {
169
+ list-style-type: none;
170
+ }
171
+
172
+ .ppcontrols ul.left {
173
+ position: relative;
174
+ top: 0;
175
+ left: 0;
176
+ padding: 0;
177
+ margin:0;
178
+ }
179
+
180
+ .ppcontrols ul.right {
181
+ background: url(<%= asset_path "player.png" %>) repeat-x scroll 0 0 #0f0e0e;
182
+ position: relative;
183
+ top: 0;
184
+ right: 0;
185
+ padding: 0;
186
+ margin:0;
187
+ }
188
+
189
+ .ppcontrols ul.bottom {
190
+ position: relative;
191
+ top: 31px;
192
+ left: 0;
193
+ padding: 0;
194
+ margin:0;
195
+ }
196
+
197
+
198
+ .ppcontrols ul.left li {
199
+ float: left;
200
+ position: relative;
201
+ }
202
+
203
+ .ppcontrols ul.right li {
204
+ float: right;
205
+ position: relative;
206
+ }
207
+
208
+ .pptitle {
209
+
210
+ padding: 0 10px;
211
+ color: #fff;
212
+ white-space: nowrap;
213
+ text-align: left;
214
+ line-height: 30px;
215
+ height:30px;
216
+ border-left:1px solid #413e3e;
217
+ font-size:11px;
218
+ width: 100%;
219
+ }
220
+
221
+
222
+ /* PLAY / PAUSE - left */
223
+ .ppplay,
224
+ .pppause {
225
+ background: url(<%= asset_path "maccaco.png" %>) no-repeat left top transparent;
226
+ width: 30px;
227
+ height: 30px;
228
+ cursor: pointer;
229
+ border-right: 1px solid #000;
230
+ }
231
+
232
+ .ppplay:hover {
233
+ background: url(<%= asset_path "maccaco.png" %>) no-repeat left -35px transparent;
234
+ }
235
+ .ppplay:active {
236
+ background: url(<%= asset_path "maccaco.png" %>) no-repeat left -36px transparent;
237
+ }
238
+
239
+ .pppause {
240
+ background: url(<%= asset_path "maccaco.png" %>) no-repeat left -70px transparent;
241
+ }
242
+
243
+ .pppause:hover {
244
+ background: url(<%= asset_path "maccaco.png" %>) no-repeat left -105px transparent;
245
+ }
246
+
247
+ .pppause:active {
248
+ background: url(<%= asset_path "maccaco.png" %>) no-repeat left -106px transparent;
249
+ }
250
+
251
+
252
+
253
+ /* Enter / Exit Fullscreen - right */
254
+ .projekktor.audio .ppfsenter,
255
+ .projekktor.audio .ppfsexit {
256
+ display: none;
257
+ }
258
+
259
+ .ppfsenter,
260
+ .ppfsexit {
261
+ width: 30px;
262
+ height: 30px;
263
+ background: url(<%= asset_path "maccaco.png" %>) no-repeat right top transparent;
264
+ cursor: pointer;
265
+ border-left: 1px solid #413e3e;
266
+ }
267
+ .ppfsenter:hover {
268
+ background: url(<%= asset_path "maccaco.png" %>) no-repeat right -35px transparent;
269
+ }
270
+ .ppfsenter:active {
271
+ background: url(<%= asset_path "maccaco.png" %>) no-repeat right -36px transparent;
272
+ }
273
+ .ppfsexit {
274
+ background: url(<%= asset_path "maccaco.png" %>) no-repeat right -70px transparent;
275
+ }
276
+ .ppfsexit:hover {
277
+ background: url(<%= asset_path "maccaco.png" %>) no-repeat right -105px transparent;
278
+ }
279
+ .ppfsexit:active {
280
+ background: url(<%= asset_path "maccaco.png" %>) no-repeat right -106px transparent;
281
+ }
282
+
283
+
284
+
285
+ /* Unmute / Max volume - right */
286
+ .ppvmax {
287
+ width: 30px;
288
+ height: 30px;
289
+ border-right: 1px solid #000;
290
+ border-left:none;
291
+ background: url(<%= asset_path "maccaco.png" %>) no-repeat -842px top transparent;
292
+ }
293
+
294
+ .ppvmax:hover {
295
+ background: url(<%= asset_path "maccaco.png" %>) no-repeat -842px -35px transparent;
296
+ }
297
+ .ppvmax:active {
298
+ background: url(<%= asset_path "maccaco.png" %>) no-repeat -842px -36px transparent;
299
+ }
300
+
301
+
302
+
303
+ /* Mute / Min volume - right */
304
+ .ppmute {
305
+ width: 29px;
306
+ height: 30px;
307
+ border-left:1px solid #413e3e;
308
+ background: url(<%= asset_path "maccaco.png" %>) no-repeat -750px top transparent;
309
+ }
310
+ .ppmute:hover {
311
+ background: url(<%= asset_path "maccaco.png" %>) no-repeat -750px -35px transparent;
312
+ }
313
+ .ppmute:active {
314
+ background: url(<%= asset_path "maccaco.png" %>) no-repeat -750px -36px transparent;
315
+ }
316
+
317
+
318
+
319
+ /* volume slider - right */
320
+ .ppvslider {
321
+ margin: 13px 5px;
322
+ height: 16px;
323
+ width: 60px;
324
+ background: url(<%= asset_path "maccaco.png" %>) no-repeat -781px -13px transparent;
325
+ }
326
+
327
+ .ppvmarker {
328
+ position: relative;
329
+ right:0;
330
+ left: 0;
331
+ height: 6px;
332
+ width: 100%;
333
+ background: url(<%= asset_path "maccaco.png" %>) no-repeat -634px -13px transparent;
334
+ }
335
+
336
+ .ppvknob {
337
+ cursor: pointer;
338
+ z-index: 201;
339
+ position: relative;
340
+ background: url(<%= asset_path "maccaco.png" %>) no-repeat -699px -5px transparent;
341
+ top: -13px;
342
+ left:0;
343
+ width: 6px;
344
+ height: 20px;
345
+ padding: 0;
346
+
347
+ }
348
+
349
+
350
+
351
+ /* time / time left */
352
+ .pptimeleft {
353
+ color: #fff;
354
+ width: 130px;
355
+ line-height: 30px;
356
+ height: 30px;
357
+ border-left: 1px solid #413e3e;
358
+ border-right: 1px solid #000;
359
+ text-align: center;
360
+ overflow: hidden;
361
+ }
362
+
363
+ /* special for single
364
+ .pptimeleft {
365
+ background: url(<%= asset_path "maccaco.png" %>) no-repeat -91px top transparent;
366
+ }
367
+ */
368
+
369
+
370
+
371
+ /* lo / hi quality toggle */
372
+ .pploquality, .pphiquality {
373
+ background: url(<%= asset_path "maccaco.png" %>) no-repeat -60px -72px transparent;
374
+ width: 30px;
375
+ height: 30px;
376
+ cursor: pointer;
377
+ border-left:1px solid #413e3e;
378
+ border-right:1px solid #000;
379
+ }
380
+
381
+ .pphiquality:hover {
382
+ background: url(<%= asset_path "maccaco.png" %>) no-repeat -32px -106px transparent;
383
+ }
384
+
385
+ .pploquality {
386
+ background: url(<%= asset_path "maccaco.png" %>) no-repeat -32px -72px transparent;
387
+ }
388
+
389
+ .pploquality:hover {
390
+ background: url(<%= asset_path "maccaco.png" %>) no-repeat -32px -106px transparent;
391
+ }
392
+
393
+ .pphiquality:active, .pploquality:active {
394
+ background: url(<%= asset_path "maccaco.png" %>) no-repeat -32px -105px transparent;
395
+ }
396
+
397
+
398
+
399
+
400
+ /* previous / next item */
401
+ .ppnext,
402
+ .ppprev {
403
+ display:block;
404
+ background: url(<%= asset_path "maccaco.png" %>) no-repeat -59px top transparent;
405
+ width: 30px;
406
+ height: 30px;
407
+ cursor: pointer;
408
+ border-left:1px solid #413e3e;
409
+ border-right:1px solid #000;
410
+ }
411
+ .ppnext { border-right:none;}
412
+ .ppnext:hover {
413
+ background: url(<%= asset_path "maccaco.png" %>) no-repeat -59px -35px transparent;
414
+ }
415
+ .ppnext:active {
416
+ background: url(<%= asset_path "maccaco.png" %>) no-repeat -59px -36px transparent;
417
+ }
418
+
419
+ .ppprev {
420
+ background: url(<%= asset_path "maccaco.png" %>) no-repeat -32px top transparent;
421
+ }
422
+
423
+ .ppprev:hover {
424
+ background: url(<%= asset_path "maccaco.png" %>) no-repeat -32px -35px transparent;
425
+ }
426
+ .ppprev:active {
427
+ background: url(<%= asset_path "maccaco.png" %>) no-repeat -32px -36px transparent;
428
+ }
429
+
430
+
431
+
432
+ /* Scrubber, Playhead and fluff */
433
+ .ppscrubber {
434
+ position: absolute;
435
+ height: 5px;
436
+ width: 100%;
437
+ background: url(<%= asset_path "maccaco-load.gif" %>) repeat-x left top transparent;
438
+ left: 0;
439
+ margin: 0;
440
+ padding: 0;
441
+ border-bottom: 1px solid #000;
442
+ }
443
+
444
+ .audio .ppscrubber {
445
+ background: url(<%= asset_path "maccaco-load-static.png" %>) repeat-x left top transparent;
446
+ }
447
+
448
+
449
+
450
+ .ppscrubberdrag {
451
+ cursor: pointer;
452
+ z-index: 302;
453
+ position: absolute;
454
+ background-color: transparent;
455
+ top:0;
456
+ left:0;
457
+ height: 5px;
458
+ width: 100%;
459
+ }
460
+
461
+ .ppplayhead, .pploaded {
462
+ position: relative;
463
+ display: block;
464
+ left: 0;
465
+ bottom: 0;
466
+ height: 5px;
467
+ width: 1px;
468
+ background-color:#fff;
469
+ cursor: pointer;
470
+ z-index: 301;
471
+ }
472
+
473
+ .ppcuepoint {
474
+ position: absolute;
475
+ height: 5px;
476
+ width: 5px;
477
+ background-color: yellow;
478
+ top: 0;
479
+ left: 0;
480
+ margin: 0;
481
+ padding: 0;
482
+ z-index: 302;
483
+ }
484
+
485
+ .ppcuepoint:hover {
486
+ background-color: red;
487
+ cursor: pointer;
488
+ }
489
+
490
+ .pploaded {
491
+ position: relative;
492
+ z-index: 10;
493
+ background: rgb(65, 62, 62) ;
494
+ opacity: 0.8;
495
+ /* ie7 */
496
+ filter: alpha(opacity = 80);
497
+ /* ie8 */
498
+ -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
499
+ }
500
+
501
+ .ppplayhead {
502
+ margin-top: -5px;
503
+ }
504
+
505
+ .ppcontextmenu.active {
506
+ display: block;
507
+ }
508
+ .ppcontextmenu.inactive {
509
+ display: none;
510
+ }
511
+ .ppcontextmenu {
512
+ background: none repeat scroll 0 0 #FFFFFF;
513
+ list-style: none outside none;
514
+ border: 1px solid #CCCCCC;
515
+ border-radius: 2px 2px 2px 2px;
516
+ margin: 4px 0;
517
+ outline: medium none;
518
+ overflow: auto;
519
+ padding: 6px 0;
520
+ position: absolute;
521
+ z-index: 2147483647;
522
+ margin: 0;
523
+ padding: 0;
524
+ top: 0;
525
+ left: 0;
526
+ }
527
+
528
+ .ppcontextmenu li {
529
+ color: #333;
530
+ cursor: pointer;
531
+ display: block;
532
+ margin: 0;
533
+ padding: 6px 20px;
534
+ text-decoration: none;
535
+ white-space: nowrap;
536
+ word-wrap: normal;
537
+ }
538
+
539
+ .ppcontextmenu li:hover {
540
+ color: #fff;
541
+ background-color: #333;
542
+ }