slideshow-service 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Manifest.txt +71 -0
- data/lib/slideshow/service/public/slideshow-csss/classList.js +116 -0
- data/lib/slideshow/service/public/slideshow-csss/logo.svg +52 -0
- data/lib/slideshow/service/public/slideshow-csss/plugins/code-highlight.js +114 -0
- data/lib/slideshow/service/public/slideshow-csss/plugins/css-controls.js +40 -0
- data/lib/slideshow/service/public/slideshow-csss/plugins/css-edit.js +132 -0
- data/lib/slideshow/service/public/slideshow-csss/plugins/css-snippets.js +89 -0
- data/lib/slideshow/service/public/slideshow-csss/plugins/incrementable.js +94 -0
- data/lib/slideshow/service/public/slideshow-csss/prefixfree.min.js +10 -0
- data/lib/slideshow/service/public/slideshow-csss/reusable.css +118 -0
- data/lib/slideshow/service/public/slideshow-csss/slides.html +90 -0
- data/lib/slideshow/service/public/slideshow-csss/slideshow.css +282 -0
- data/lib/slideshow/service/public/slideshow-csss/slideshow.js +508 -0
- data/lib/slideshow/service/public/slideshow-csss/style.css +45 -0
- data/lib/slideshow/service/public/slideshow-csss/theme.css +247 -0
- data/lib/slideshow/service/public/slideshow-slidy/graphics/bullet-fold-dim.gif +0 -0
- data/lib/slideshow/service/public/slideshow-slidy/graphics/bullet-fold-dim.png +0 -0
- data/lib/slideshow/service/public/slideshow-slidy/graphics/bullet-fold.gif +0 -0
- data/lib/slideshow/service/public/slideshow-slidy/graphics/bullet-fold.png +0 -0
- data/lib/slideshow/service/public/slideshow-slidy/graphics/bullet-nofold-dim.gif +0 -0
- data/lib/slideshow/service/public/slideshow-slidy/graphics/bullet-nofold-dim.png +0 -0
- data/lib/slideshow/service/public/slideshow-slidy/graphics/bullet-nofold.gif +0 -0
- data/lib/slideshow/service/public/slideshow-slidy/graphics/bullet-nofold.png +0 -0
- data/lib/slideshow/service/public/slideshow-slidy/graphics/bullet-unfold-dim.gif +0 -0
- data/lib/slideshow/service/public/slideshow-slidy/graphics/bullet-unfold-dim.png +0 -0
- data/lib/slideshow/service/public/slideshow-slidy/graphics/bullet-unfold.gif +0 -0
- data/lib/slideshow/service/public/slideshow-slidy/graphics/bullet-unfold.png +0 -0
- data/lib/slideshow/service/public/slideshow-slidy/graphics/bullet.png +0 -0
- data/lib/slideshow/service/public/slideshow-slidy/graphics/example.png +0 -0
- data/lib/slideshow/service/public/slideshow-slidy/graphics/example.svg +223 -0
- data/lib/slideshow/service/public/slideshow-slidy/graphics/face1.gif +0 -0
- data/lib/slideshow/service/public/slideshow-slidy/graphics/face2.gif +0 -0
- data/lib/slideshow/service/public/slideshow-slidy/graphics/face3.gif +0 -0
- data/lib/slideshow/service/public/slideshow-slidy/graphics/face4.gif +0 -0
- data/lib/slideshow/service/public/slideshow-slidy/graphics/fold-bright.gif +0 -0
- data/lib/slideshow/service/public/slideshow-slidy/graphics/fold-dim.bmp +0 -0
- data/lib/slideshow/service/public/slideshow-slidy/graphics/fold-dim.gif +0 -0
- data/lib/slideshow/service/public/slideshow-slidy/graphics/fold.bmp +0 -0
- data/lib/slideshow/service/public/slideshow-slidy/graphics/fold.gif +0 -0
- data/lib/slideshow/service/public/slideshow-slidy/graphics/icon-blue.png +0 -0
- data/lib/slideshow/service/public/slideshow-slidy/graphics/keys2.jpg +0 -0
- data/lib/slideshow/service/public/slideshow-slidy/graphics/nofold-dim.bmp +0 -0
- data/lib/slideshow/service/public/slideshow-slidy/graphics/nofold-dim.gif +0 -0
- data/lib/slideshow/service/public/slideshow-slidy/graphics/nofold.bmp +0 -0
- data/lib/slideshow/service/public/slideshow-slidy/graphics/unfold-bright.gif +0 -0
- data/lib/slideshow/service/public/slideshow-slidy/graphics/unfold-dim.bmp +0 -0
- data/lib/slideshow/service/public/slideshow-slidy/graphics/unfold-dim.gif +0 -0
- data/lib/slideshow/service/public/slideshow-slidy/graphics/unfold.bmp +0 -0
- data/lib/slideshow/service/public/slideshow-slidy/graphics/unfold.gif +0 -0
- data/lib/slideshow/service/public/slideshow-slidy/graphics/w3c-logo-blue.gif +0 -0
- data/lib/slideshow/service/public/slideshow-slidy/graphics/w3c-logo-blue.svg +14 -0
- data/lib/slideshow/service/public/slideshow-slidy/graphics/w3c-logo-slanted.jpg +0 -0
- data/lib/slideshow/service/public/slideshow-slidy/graphics/w3c-logo-white.gif +0 -0
- data/lib/slideshow/service/public/slideshow-slidy/graphics/w3c-logo-white.svg +14 -0
- data/lib/slideshow/service/public/slideshow-slidy/help/help.html +80 -0
- data/lib/slideshow/service/public/slideshow-slidy/help/help.html.ca +52 -0
- data/lib/slideshow/service/public/slideshow-slidy/help/help.html.de +96 -0
- data/lib/slideshow/service/public/slideshow-slidy/help/help.html.en +81 -0
- data/lib/slideshow/service/public/slideshow-slidy/help/help.html.es +52 -0
- data/lib/slideshow/service/public/slideshow-slidy/help/help.html.fr +118 -0
- data/lib/slideshow/service/public/slideshow-slidy/help/help.html.hu +98 -0
- data/lib/slideshow/service/public/slideshow-slidy/help/help.html.nl +82 -0
- data/lib/slideshow/service/public/slideshow-slidy/help/help.html.pl +76 -0
- data/lib/slideshow/service/public/slideshow-slidy/help/help.html.pt-br +95 -0
- data/lib/slideshow/service/public/slideshow-slidy/help/help.html.pt_br +95 -0
- data/lib/slideshow/service/public/slideshow-slidy/help/help.html.sv +75 -0
- data/lib/slideshow/service/public/slideshow-slidy/help/help.pt-br.html +95 -0
- data/lib/slideshow/service/public/slideshow-slidy/scripts/slidy.js +2952 -0
- data/lib/slideshow/service/public/slideshow-slidy/slides.blank.html +26 -0
- data/lib/slideshow/service/public/slideshow-slidy/slides.w3c.html +62 -0
- data/lib/slideshow/service/public/slideshow-slidy/styles/slidy.css +401 -0
- data/lib/slideshow/service/public/slideshow-slidy/styles/w3c-blue.css +493 -0
- data/lib/slideshow/service/version.rb +1 -2
- data/lib/slideshow/service/views/_editor.erb +7 -4
- data/lib/slideshow/service.rb +47 -19
- metadata +73 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b743fae6ab5136290bda5d56fa081c5c04436c7
|
4
|
+
data.tar.gz: 592e34bb8f9ac9c07c6341013e95246420039c6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a30e795a0a0c9a7c946f0594281faab4d459f799638209efeaf742488b45da7bcd10227c74600470b6a455238f5ce747a4805403cc169c57a95c3ea22d35f992
|
7
|
+
data.tar.gz: c1574e1d889c70147c43a34adc19cf0bd563d1b8c1070abb20a193bdc1b95b6fba8551bee320baba25266f3177015e668c4919dc1020b06f29063e76790f5f7c
|
data/Manifest.txt
CHANGED
@@ -8,6 +8,20 @@ lib/slideshow/service/public/css/markdown/note.css
|
|
8
8
|
lib/slideshow/service/public/i/dots-white.gif
|
9
9
|
lib/slideshow/service/public/js/lib3rd/jquery-2.0.1.min.js
|
10
10
|
lib/slideshow/service/public/js/markdown.note.js
|
11
|
+
lib/slideshow/service/public/slideshow-csss/classList.js
|
12
|
+
lib/slideshow/service/public/slideshow-csss/logo.svg
|
13
|
+
lib/slideshow/service/public/slideshow-csss/plugins/code-highlight.js
|
14
|
+
lib/slideshow/service/public/slideshow-csss/plugins/css-controls.js
|
15
|
+
lib/slideshow/service/public/slideshow-csss/plugins/css-edit.js
|
16
|
+
lib/slideshow/service/public/slideshow-csss/plugins/css-snippets.js
|
17
|
+
lib/slideshow/service/public/slideshow-csss/plugins/incrementable.js
|
18
|
+
lib/slideshow/service/public/slideshow-csss/prefixfree.min.js
|
19
|
+
lib/slideshow/service/public/slideshow-csss/reusable.css
|
20
|
+
lib/slideshow/service/public/slideshow-csss/slides.html
|
21
|
+
lib/slideshow/service/public/slideshow-csss/slideshow.css
|
22
|
+
lib/slideshow/service/public/slideshow-csss/slideshow.js
|
23
|
+
lib/slideshow/service/public/slideshow-csss/style.css
|
24
|
+
lib/slideshow/service/public/slideshow-csss/theme.css
|
11
25
|
lib/slideshow/service/public/slideshow-deck.js/core/deck.core.css
|
12
26
|
lib/slideshow/service/public/slideshow-deck.js/core/deck.core.html
|
13
27
|
lib/slideshow/service/public/slideshow-deck.js/core/deck.core.js
|
@@ -58,6 +72,63 @@ lib/slideshow/service/public/slideshow-s6-blank/s6/screen.css
|
|
58
72
|
lib/slideshow/service/public/slideshow-s6-blank/slides.html
|
59
73
|
lib/slideshow/service/public/slideshow-s6-blank/slides.pdf.html
|
60
74
|
lib/slideshow/service/public/slideshow-s6-blank/style.css
|
75
|
+
lib/slideshow/service/public/slideshow-slidy/graphics/bullet-fold-dim.gif
|
76
|
+
lib/slideshow/service/public/slideshow-slidy/graphics/bullet-fold-dim.png
|
77
|
+
lib/slideshow/service/public/slideshow-slidy/graphics/bullet-fold.gif
|
78
|
+
lib/slideshow/service/public/slideshow-slidy/graphics/bullet-fold.png
|
79
|
+
lib/slideshow/service/public/slideshow-slidy/graphics/bullet-nofold-dim.gif
|
80
|
+
lib/slideshow/service/public/slideshow-slidy/graphics/bullet-nofold-dim.png
|
81
|
+
lib/slideshow/service/public/slideshow-slidy/graphics/bullet-nofold.gif
|
82
|
+
lib/slideshow/service/public/slideshow-slidy/graphics/bullet-nofold.png
|
83
|
+
lib/slideshow/service/public/slideshow-slidy/graphics/bullet-unfold-dim.gif
|
84
|
+
lib/slideshow/service/public/slideshow-slidy/graphics/bullet-unfold-dim.png
|
85
|
+
lib/slideshow/service/public/slideshow-slidy/graphics/bullet-unfold.gif
|
86
|
+
lib/slideshow/service/public/slideshow-slidy/graphics/bullet-unfold.png
|
87
|
+
lib/slideshow/service/public/slideshow-slidy/graphics/bullet.png
|
88
|
+
lib/slideshow/service/public/slideshow-slidy/graphics/example.png
|
89
|
+
lib/slideshow/service/public/slideshow-slidy/graphics/example.svg
|
90
|
+
lib/slideshow/service/public/slideshow-slidy/graphics/face1.gif
|
91
|
+
lib/slideshow/service/public/slideshow-slidy/graphics/face2.gif
|
92
|
+
lib/slideshow/service/public/slideshow-slidy/graphics/face3.gif
|
93
|
+
lib/slideshow/service/public/slideshow-slidy/graphics/face4.gif
|
94
|
+
lib/slideshow/service/public/slideshow-slidy/graphics/fold-bright.gif
|
95
|
+
lib/slideshow/service/public/slideshow-slidy/graphics/fold-dim.bmp
|
96
|
+
lib/slideshow/service/public/slideshow-slidy/graphics/fold-dim.gif
|
97
|
+
lib/slideshow/service/public/slideshow-slidy/graphics/fold.bmp
|
98
|
+
lib/slideshow/service/public/slideshow-slidy/graphics/fold.gif
|
99
|
+
lib/slideshow/service/public/slideshow-slidy/graphics/icon-blue.png
|
100
|
+
lib/slideshow/service/public/slideshow-slidy/graphics/keys2.jpg
|
101
|
+
lib/slideshow/service/public/slideshow-slidy/graphics/nofold-dim.bmp
|
102
|
+
lib/slideshow/service/public/slideshow-slidy/graphics/nofold-dim.gif
|
103
|
+
lib/slideshow/service/public/slideshow-slidy/graphics/nofold.bmp
|
104
|
+
lib/slideshow/service/public/slideshow-slidy/graphics/unfold-bright.gif
|
105
|
+
lib/slideshow/service/public/slideshow-slidy/graphics/unfold-dim.bmp
|
106
|
+
lib/slideshow/service/public/slideshow-slidy/graphics/unfold-dim.gif
|
107
|
+
lib/slideshow/service/public/slideshow-slidy/graphics/unfold.bmp
|
108
|
+
lib/slideshow/service/public/slideshow-slidy/graphics/unfold.gif
|
109
|
+
lib/slideshow/service/public/slideshow-slidy/graphics/w3c-logo-blue.gif
|
110
|
+
lib/slideshow/service/public/slideshow-slidy/graphics/w3c-logo-blue.svg
|
111
|
+
lib/slideshow/service/public/slideshow-slidy/graphics/w3c-logo-slanted.jpg
|
112
|
+
lib/slideshow/service/public/slideshow-slidy/graphics/w3c-logo-white.gif
|
113
|
+
lib/slideshow/service/public/slideshow-slidy/graphics/w3c-logo-white.svg
|
114
|
+
lib/slideshow/service/public/slideshow-slidy/help/help.html
|
115
|
+
lib/slideshow/service/public/slideshow-slidy/help/help.html.ca
|
116
|
+
lib/slideshow/service/public/slideshow-slidy/help/help.html.de
|
117
|
+
lib/slideshow/service/public/slideshow-slidy/help/help.html.en
|
118
|
+
lib/slideshow/service/public/slideshow-slidy/help/help.html.es
|
119
|
+
lib/slideshow/service/public/slideshow-slidy/help/help.html.fr
|
120
|
+
lib/slideshow/service/public/slideshow-slidy/help/help.html.hu
|
121
|
+
lib/slideshow/service/public/slideshow-slidy/help/help.html.nl
|
122
|
+
lib/slideshow/service/public/slideshow-slidy/help/help.html.pl
|
123
|
+
lib/slideshow/service/public/slideshow-slidy/help/help.html.pt-br
|
124
|
+
lib/slideshow/service/public/slideshow-slidy/help/help.html.pt_br
|
125
|
+
lib/slideshow/service/public/slideshow-slidy/help/help.html.sv
|
126
|
+
lib/slideshow/service/public/slideshow-slidy/help/help.pt-br.html
|
127
|
+
lib/slideshow/service/public/slideshow-slidy/scripts/slidy.js
|
128
|
+
lib/slideshow/service/public/slideshow-slidy/slides.blank.html
|
129
|
+
lib/slideshow/service/public/slideshow-slidy/slides.w3c.html
|
130
|
+
lib/slideshow/service/public/slideshow-slidy/styles/slidy.css
|
131
|
+
lib/slideshow/service/public/slideshow-slidy/styles/w3c-blue.css
|
61
132
|
lib/slideshow/service/public/style.css
|
62
133
|
lib/slideshow/service/version.rb
|
63
134
|
lib/slideshow/service/views/_debug.erb
|
@@ -0,0 +1,116 @@
|
|
1
|
+
/*
|
2
|
+
* classList.js: Implements a cross-browser element.classList getter.
|
3
|
+
* 2010-09-06
|
4
|
+
*
|
5
|
+
* By Eli Grey, http://eligrey.com
|
6
|
+
* Public Domain.
|
7
|
+
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
|
8
|
+
*/
|
9
|
+
|
10
|
+
"use strict";
|
11
|
+
|
12
|
+
if (typeof Element !== "undefined") {
|
13
|
+
|
14
|
+
(function () {
|
15
|
+
|
16
|
+
var
|
17
|
+
classListProp = "classList"
|
18
|
+
, protoProp = "prototype"
|
19
|
+
, elemCtrProto = Element[protoProp]
|
20
|
+
, objCtr = Object
|
21
|
+
;
|
22
|
+
if (!objCtr.hasOwnProperty.call(elemCtrProto, classListProp)) {
|
23
|
+
var
|
24
|
+
strTrim = String[protoProp].trim || function () {
|
25
|
+
return this.replace(/^\s+|\s+$/g, "");
|
26
|
+
}
|
27
|
+
, arrIndexOf = Array[protoProp].indexOf || function (item) {
|
28
|
+
for (var i = 0, len = this.length; i < len; i++) {
|
29
|
+
if (i in this && this[i] === item) {
|
30
|
+
return i;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
return -1;
|
34
|
+
}
|
35
|
+
, checkTokenAndGetIndex = function (classList, token) {
|
36
|
+
if (token === "") {
|
37
|
+
throw "SYNTAX_ERR";
|
38
|
+
}
|
39
|
+
if (/\s/.test(token)) {
|
40
|
+
throw "INVALID_CHARACTER_ERR";
|
41
|
+
}
|
42
|
+
return arrIndexOf.call(classList, token);
|
43
|
+
}
|
44
|
+
, ClassList = function (elem) {
|
45
|
+
var
|
46
|
+
trimmedClasses = strTrim.call(elem.className)
|
47
|
+
, classes = trimmedClasses ? trimmedClasses.split(/\s+/) : []
|
48
|
+
;
|
49
|
+
for (var i = 0, len = classes.length; i < len; i++) {
|
50
|
+
this.push(classes[i]);
|
51
|
+
}
|
52
|
+
this.updateClassName = function () {
|
53
|
+
elem.className = this.toString();
|
54
|
+
};
|
55
|
+
}
|
56
|
+
, classListProto = ClassList[protoProp] = []
|
57
|
+
, classListGetter = function () {
|
58
|
+
return new ClassList(this);
|
59
|
+
}
|
60
|
+
;
|
61
|
+
classListProto.item = function (i) {
|
62
|
+
return this[i] || null;
|
63
|
+
};
|
64
|
+
classListProto.contains = function (token) {
|
65
|
+
token += "";
|
66
|
+
return checkTokenAndGetIndex(this, token) !== -1;
|
67
|
+
};
|
68
|
+
classListProto.add = function (token) {
|
69
|
+
token += "";
|
70
|
+
if (checkTokenAndGetIndex(this, token) === -1) {
|
71
|
+
this.push(token);
|
72
|
+
this.updateClassName();
|
73
|
+
}
|
74
|
+
};
|
75
|
+
classListProto.remove = function (token) {
|
76
|
+
token += "";
|
77
|
+
var index = checkTokenAndGetIndex(this, token);
|
78
|
+
if (index !== -1) {
|
79
|
+
this.splice(index, 1);
|
80
|
+
this.updateClassName();
|
81
|
+
}
|
82
|
+
};
|
83
|
+
classListProto.toggle = function (token) {
|
84
|
+
token += "";
|
85
|
+
if (checkTokenAndGetIndex(this, token) === -1) {
|
86
|
+
this.add(token);
|
87
|
+
} else {
|
88
|
+
this.remove(token);
|
89
|
+
}
|
90
|
+
};
|
91
|
+
classListProto.toString = function () {
|
92
|
+
return this.join(" ");
|
93
|
+
};
|
94
|
+
|
95
|
+
if (objCtr.defineProperty) {
|
96
|
+
var classListDescriptor = {
|
97
|
+
get: classListGetter
|
98
|
+
, enumerable: true
|
99
|
+
, configurable: true
|
100
|
+
};
|
101
|
+
try {
|
102
|
+
objCtr.defineProperty(elemCtrProto, classListProp, classListDescriptor);
|
103
|
+
} catch (ex) { // IE 8 doesn't support enumerable:true
|
104
|
+
if (ex.number === -0x7FF5EC54) {
|
105
|
+
classListDescriptor.enumerable = false;
|
106
|
+
objCtr.defineProperty(elemCtrProto, classListProp, classListDescriptor);
|
107
|
+
}
|
108
|
+
}
|
109
|
+
} else if (objCtr[protoProp].__defineGetter__) {
|
110
|
+
elemCtrProto.__defineGetter__(classListProp, classListGetter);
|
111
|
+
}
|
112
|
+
}
|
113
|
+
|
114
|
+
}());
|
115
|
+
|
116
|
+
}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
+
<!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.0//EN' 'http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd'>
|
3
|
+
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" height="211.06px" width="508px" version="1.0" y="0px" x="0px"
|
4
|
+
xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 508 211.064" enable-background="new 0 0 508 211.064">
|
5
|
+
<defs>
|
6
|
+
<linearGradient id="whiteToLightGray" gradientUnits="userSpaceOnUse" y2=".00048828" y1="152" x2="101.57" x1="101.57">
|
7
|
+
<stop stop-color="#B3B3B3" offset="0"/>
|
8
|
+
<stop stop-color="#fff" offset="1"/>
|
9
|
+
</linearGradient>
|
10
|
+
</defs>
|
11
|
+
<g fill="#fff" fill-opacity=".35">
|
12
|
+
<path d="m225.36 89.787c-.977-.891-2.063-1.498-3.255-1.855-1.371-.414-3.016-.677-4.859-.783l-29.482-.002c-3.704-.122-7.117-.693-10.135-1.7-2.925-.976-5.485-2.104-7.608-3.354-2.139-1.25-4.291-2.893-6.387-4.875l-.141-.141c-5.963-6.32-9.343-13.285-10.05-20.704-.169-.797-.392-2.04-.324-4.802.055-2.419-.115-5.068-.115-7.868v-7.703h-76v79h151v-19.168c0-2.521-.88-4.441-2.64-6.045z"/>
|
13
|
+
<path d="m357 43.702v-7.702h-77v18.254c0 2.249 1.146 3.908 2.535 5.071 2.109 1.839 4.766 2.709 8.097 2.709l29.695.002c3.726.13 7.133.743 10.108 1.819 2.809 1.023 5.287 2.131 7.364 3.295 2.197 1.234 4.39 2.941 6.515 5.074 2.881 3.02 5.108 6.176 6.67 9.438 1.536 3.198 2.401 6.52 3.021 9.869.104.54-.005 1.5-.005 5.721v8.988c0 2.832.195 5.927.133 9.229l1.337-.284 75.53.284v-19.638c0-2.521-.738-4.441-2.497-6.045-.978-.892-1.991-1.498-3.181-1.855-1.371-.414-2.979-.677-4.822-.783l-29.464-.002c-3.705-.122-7.109-.693-10.127-1.7-2.926-.976-5.483-2.104-7.605-3.355-2.133-1.247-4.283-2.89-6.382-4.874l-.142-.141c-5.962-6.32-9.341-13.284-10.049-20.705-.168-.795-.037-2.035.031-4.801.06-2.433.24-5.083.24-7.869z"/>
|
14
|
+
<path d="m327.18 89.787c-.977-.891-2.151-1.498-3.343-1.855-1.371-.414-3.059-.677-4.903-.783l-29.505-.002c-3.705-.122-7.13-.693-10.147-1.7-2.92-.974-5.486-2.103-7.611-3.354-2.135-1.248-4.291-2.891-6.39-4.875l-.144-.141c-5.964-6.322-9.346-13.287-10.051-20.709-.168-.798-.214-2.045-.146-4.797.054-2.391.06-5.04.06-7.868v-7.703h-76v18.254c0 2.248.823 3.908 2.213 5.072 2.108 1.838 4.603 2.708 7.935 2.708l29.614.002c3.726.131 7.092.743 10.068 1.819 2.809 1.023 5.268 2.131 7.344 3.295 2.2 1.236 4.383 2.943 6.505 5.076 2.881 3.019 5.104 6.176 6.664 9.436 1.535 3.199 2.72 6.521 3.338 9.871.105.529.319 1.493.319 5.719v8.988c0 2.833-.127 5.927-.192 9.229l1.5-.284 75.69.28v-19.638c0-2.52-1.06-4.44-2.82-6.045z"/>
|
15
|
+
<path d="m52 36h-18.705c-1.932 1-2.648 1.326-2.766 1.443-.537.541-1.529 2.295-1.529 6.407v12.449c0 4.554-.539 8.152-1.836 11-1.402 3.049-3.589 5.719-6.622 7.985 2.413 1.558 4.144 3.285 5.371 5.212 2.04 3.192 3.087 7.336 3.087 12.664v13.631c0 2.014.393 4.688 1.832 6l.127.076c.294.287 1.311.809 4.179 1.656l2.432.47h14.43v-79z"/>
|
16
|
+
<path d="m482.14 69.525c-2.12-3.457-3.14-7.908-3.14-13.226v-12.45c0-4.4-.898-5.817-1.07-6.011-.34-.383-1.223-.838-3.115-1.838h-92.82v18.254c0 2.248.971 3.908 2.359 5.072 2.109 1.838 4.677 2.708 8.009 2.708l29.649.002c3.726.13 7.111.743 10.087 1.819 2.81 1.023 5.277 2.131 7.354 3.295 2.198 1.236 4.385 2.942 6.51 5.074 2.882 3.021 5.106 6.178 6.667 9.438 1.537 3.203 2.577 6.525 3.194 9.871.113.582.171 1.704.171 5.719v8.988c0 2.816.071 5.76.008 8.76h14.494l2.435-.479c2.861-.84 3.904-1.5 4.2-1.795 1.439-1.409 1.863-3.984 1.863-6v-13.505c0-5.96 1.18-10.373 3.697-13.493 1.299-1.608 2.947-3.067 4.98-4.398-2.42-1.762-4.25-3.683-5.54-5.799z"/>
|
17
|
+
</g>
|
18
|
+
<g fill="url(#whiteToLightGray)">
|
19
|
+
<path d="m76.467 22.059c2.149-2.83 5.506-4.059 9.583-4.059h31.407c3.96 0 7.018 1.463 9.167 4.286 2.26 2.823 3.39 5.714 3.39 10.714h18.113c0-10-3.043-17.038-9.125-23.353-5.96-6.433-13.34-9.647-22.12-9.647h-30.251c-8.789 0-16.406 2.979-22.488 9.413-5.972 6.315-9.141 13.867-9.141 23.118v86.153c0 9.03 3.169 17.058 9.141 23.601 6.082 6.33 13.699 9.72 22.488 9.72h30.249c8.781 0 16.157-3.364 22.13-9.633 6.082-6.37 9.125-14.251 9.125-23.391l-18.113-.232c0 2.259-.282 4.18-.848 5.811-.564 1.639-1.418 2.97-2.548 4.437-2.149 2.823-5.207 4.009-9.167 4.009h-31.41c-4.077 0-7.434-1.206-9.583-4.031-2.148-2.823-3.467-6.18-3.467-10.471v-85.959c0-4.518 1.319-7.896 3.467-10.492z"/>
|
20
|
+
<path d="m178.38 22.105c2.135-2.805 5.184-4.105 9.123-4.105h13.678c3.939 0 8.445-.152 13.514-.27 4.167 0 7.824 1.66 10.972 4.586 3.044 2.597 5.014 5.684 5.917 10.684h17.9c-.34-10-3.775-17.175-10.305-23.436-6.65-6.377-14.48-9.564-23.49-9.564h-27.708c-8.899 0-16.229 2.979-22.084 9.413-5.971 6.088-8.9 13.64-8.9 23.118v11.171c0 2.823-.08 5.476-.136 7.954-.062 2.486-.061 3.836.057 4.064.564 6.77 3.596 13.092 9.126 18.953 1.915 1.812 3.831 3.279 5.75 4.402 1.916 1.129 4.227 2.323 6.933 3.226 2.707.902 5.755 1.698 9.136 1.698h29.457c2.143 0 4.057.244 5.751.755 1.694.509 3.033 1.296 4.39 2.534 2.479 2.261 3.535 5.053 3.535 8.543v22.516c0 4.291-.891 7.722-3.032 10.539-2.142 2.823-5.058 4.113-9.122 4.113h-13.54c-3.954 0-8.464.068-13.54-.05-4.4 0-8.189-1.187-11.344-4.01-2.935-2.597-4.855-5.94-5.758-9.94h-18.617c.447 9 3.947 16.955 10.477 23.27 6.756 6.434 14.808 9.73 24.16 9.73h27.536c8.788 0 16.227-3.406 22.308-9.735 5.745-6.22 8.46-14.143 8.46-23.523.111-4.524.012-8.769.012-12.501v-8.988c0-2.825.099-4.52-.012-5.084-.564-3.059-1.471-6.053-2.882-8.994-1.405-2.935-3.365-5.765-5.954-8.479-1.914-1.923-3.81-3.416-5.725-4.492-1.914-1.073-4.185-1.861-6.829-2.824-2.645-.957-5.645-1.379-9.02-1.379h-29.554c-4.167 0-7.608-1.403-10.308-3.757-2.16-1.793-3.73-4.546-3.73-7.797v-21.853c0-4.257 1.13-7.686 3.38-10.488z"/>
|
21
|
+
<path d="m280.2 22.105c2.135-2.805 5.006-4.105 8.945-4.105h13.679c3.939 0 8.444-.152 13.514-.27 4.166 0 7.823 1.66 10.972 4.586 3.044 2.597 5.014 5.684 5.915 10.684h17.9c-.336-10-3.773-17.175-10.304-23.436-6.64-6.377-14.47-9.564-23.48-9.564h-27.707c-8.9 0-16.053 2.979-21.908 9.413-5.97 6.088-8.724 13.64-8.724 23.118v11.171c0 2.823-.256 5.476-.312 7.954-.062 2.486-.151 3.836-.032 4.064.564 6.77 3.552 13.092 9.082 18.953 1.916 1.812 3.808 3.279 5.729 4.402 1.916 1.129 4.215 2.323 6.922 3.226 2.706.902 5.744 1.698 9.125 1.698h29.458c2.141 0 4.057.244 5.751.755 1.694.509 3.209 1.296 4.565 2.534 2.479 2.261 3.712 5.053 3.712 8.543v22.516c0 4.291-1.068 7.722-3.209 10.539-2.144 2.823-5.233 4.113-9.297 4.113h-13.541c-3.953 0-8.464.068-13.542-.05-4.399 0-8.188-1.187-11.343-4.01-2.935-2.597-4.855-5.94-5.758-9.94h-18.617c.449 9 3.948 16.955 10.477 23.27 6.757 6.434 14.808 9.73 24.161 9.73h27.536c8.787 0 16.227-3.406 22.308-9.735 5.744-6.22 8.64-14.143 8.64-23.523.109-4.524.186-8.769.186-12.501v-8.988c0-2.825-.076-4.52-.186-5.084-.566-3.059-1.562-6.053-2.975-8.994-1.405-2.935-3.407-5.765-5.996-8.479-1.916-1.923-3.833-3.416-5.747-4.492-1.915-1.073-4.197-1.861-6.841-2.824-2.66-.957-5.67-1.379-9.05-1.379h-29.554c-4.166 0-7.431-1.403-10.13-3.757-2.14-1.793-3.54-4.546-3.54-7.797v-21.853c0-4.257.95-7.686 3.2-10.488z"/>
|
22
|
+
<path d="m449.48 83.174c-1.405-2.935-3.403-5.765-5.991-8.479-1.916-1.923-3.831-3.416-5.745-4.492-1.914-1.073-4.194-1.861-6.839-2.824-2.646-.957-5.654-1.379-9.03-1.379h-29.552c-4.167 0-7.756-1.403-10.455-3.757-2.14-1.793-2.86-4.546-3.86-7.797v-21.853c0-4.257 1.273-7.686 3.525-10.487 2.135-2.805 5.33-4.105 9.27-4.105h13.679c3.939 0 8.444-.152 13.514-.27 4.167 0 7.824 1.66 10.971 4.586 3.045 2.597 5.016 5.684 5.918 10.684h17.898c-.336-10-3.773-17.175-10.303-23.436-6.64-6.378-14.47-9.565-23.48-9.565h-27.708c-8.899 0-16.377 2.979-22.229 9.413-5.97 6.088-9.05 13.64-9.05 23.118v11.171c0 2.823.066 5.476.012 7.954-.062 2.486.013 3.836.129 4.064.566 6.77 3.634 13.092 9.163 18.953 1.916 1.812 3.849 3.279 5.77 4.402 1.914 1.129 4.234 2.323 6.942 3.226 2.706.902 5.764 1.698 9.146 1.698h29.457c2.142 0 4.058.244 5.751.755 1.694.509 3.385 1.296 4.742 2.534 2.479 2.261 3.889 5.053 3.889 8.543v22.516c0 4.291-1.244 7.722-3.386 10.539-2.142 2.823-5.411 4.113-9.474 4.113h-13.54c-3.953 0-8.464.068-13.54-.05-4.401 0-8.189-1.187-11.344-4.01-2.935-2.597-4.855-5.94-5.759-9.94h-18.616c.448 9 3.946 16.955 10.476 23.27 6.757 6.434 14.808 9.73 24.161 9.73h27.536c8.787 0 16.227-3.406 22.308-9.735 5.745-6.22 8.815-14.143 8.815-23.523.109-4.524.363-8.769.363-12.501v-8.988c0-2.825-.254-4.52-.363-5.084-.57-3.059-1.75-6.053-3.16-8.994z"/>
|
23
|
+
<path d="m17.556 28.389c-2.577 2.042-4.483 4.801-5.559 8.274-.604 2.007-.997 3.923-.997 5.749v14.399c0 5.087-1.185 8.864-3.726 11.335-1.434 1.434-3.798 2.742-7.274 3.924v6.5c3.081.861 5.357 2.023 7.006 3.492 2.719 2.401 3.994 5.857 3.994 10.37v16.817c0 5.587 2.007 9.841 5.85 12.761 3.841 2.918 8.277 4.45 13.389 4.593l3.761.11v-8.597c-2-.787-4.294-1.699-5.36-2.736-1.924-1.753-2.64-4.615-2.64-8.586v-13.565c0-4.613-1.098-8.227-2.767-10.839-1.661-2.608-4.994-4.899-9.83-6.868 5.338-2.468 9.038-5.688 10.865-9.658 1.076-2.363 1.732-5.543 1.732-9.551v-12.449c0-4.114.577-6.994 2.213-8.64 1.067-1.073 2.787-1.931 5.787-2.577v-8.595c-3 .036-6.295.25-8.225.646-3.178.608-5.864 1.843-8.219 3.705z"/>
|
24
|
+
<path d="m500.4 68.094c-2.328-2.399-3.404-6.16-3.404-11.282v-14.4c0-2.042-.453-4.424-1.389-7.146s-2.599-5.015-5.002-6.878c-2.406-1.862-5.166-3.098-8.359-3.706-1.939-.395-4.25-.608-8.25-.645v8.595c3 .646 5.063 1.682 6.335 3.114 1.271 1.431 1.665 4.131 1.665 8.102v12.45c0 4.686 1.094 8.487 2.873 11.403 1.779 2.915 5.128 5.517 9.837 7.806-4.315 1.826-7.613 3.962-9.591 6.412-1.98 2.452-3.12 6.218-3.12 11.296v13.576c0 3.898-.776 6.744-2.604 8.533-1.075 1.07-2.396 2.002-5.396 2.789v8.597l3.785-.106c5.312-.144 9.821-1.711 13.59-4.701 3.772-2.992 5.625-7.209 5.625-12.653v-16.818c0-4.584 1.326-8.094 4.156-10.531 1.576-1.36 3.844-2.469 6.844-3.33v-6.5c-3-1.219-6.16-2.544-7.6-3.977z"/>
|
25
|
+
</g>
|
26
|
+
<g fill="#fff">
|
27
|
+
<path d="m27.383 194.14c-.667 1.454-1.527 2.7-2.58 3.74-1.054 1.04-2.3 1.854-3.74 2.439-1.44.587-3.067.88-4.88.88-1.894 0-3.634-.366-5.22-1.1-1.587-.733-2.947-1.746-4.08-3.04-1.134-1.293-2.02-2.84-2.66-4.64-.64-1.801-.96-3.767-.96-5.9 0-1.733.246-3.5.74-5.3.493-1.8 1.273-3.434 2.34-4.9 1.066-1.466 2.453-2.666 4.16-3.6 1.706-.934 3.773-1.4 6.2-1.4 1.893 0 3.546.314 4.96.94 1.413.627 2.593 1.413 3.54 2.359.946.947 1.66 1.954 2.14 3.021s.733 2.04.76 2.92h-.8c-.08-1.04-.387-2.06-.92-3.06-.534-1-1.26-1.9-2.18-2.7s-2.014-1.446-3.28-1.94c-1.267-.493-2.674-.74-4.22-.74-2.347 0-4.327.475-5.94 1.421-1.614.946-2.914 2.133-3.9 3.56-.987 1.427-1.7 2.979-2.14 4.66-.44 1.68-.66 3.267-.66 4.76 0 1.813.267 3.56.8 5.24s1.32 3.16 2.36 4.439c1.04 1.28 2.313 2.308 3.82 3.08 1.506.774 3.22 1.16 5.14 1.16 1.707 0 3.24-.28 4.6-.84s2.533-1.333 3.52-2.32c.986-.986 1.786-2.16 2.4-3.52.613-1.36 1.026-2.826 1.24-4.4h.8c-.240 1.73-.694 3.33-1.36 4.78z"/>
|
28
|
+
<path d="m50.083 176.3c-.494-1-1.147-1.813-1.96-2.44-.813-.626-1.78-1.073-2.9-1.34s-2.32-.4-3.6-.4c-.987 0-2.014.101-3.08.301-1.067.199-2.034.554-2.9 1.06-.867.507-1.58 1.18-2.14 2.021-.56.84-.84 1.899-.84 3.18s.286 2.307.86 3.08c.573.773 1.32 1.399 2.24 1.88.92.479 1.966.854 3.14 1.12 1.173.267 2.373.547 3.6.84 1.333.347 2.593.68 3.78 1 1.186.32 2.22.747 3.1 1.28s1.58 1.239 2.1 2.12c.52.88.78 2.066.78 3.56 0 1.36-.294 2.52-.88 3.48-.587.96-1.36 1.753-2.32 2.38s-2.04 1.08-3.24 1.359c-1.2.28-2.414.42-3.64.42-1.627 0-3.127-.187-4.5-.56-1.374-.373-2.56-.967-3.56-1.78-1-.812-1.774-1.859-2.32-3.14-.547-1.28-.807-2.826-.78-4.641h.8c0 1.707.253 3.154.76 4.341.506 1.187 1.22 2.153 2.14 2.899.92.747 2.013 1.287 3.28 1.62 1.267.334 2.66.5 4.18.5 1.12 0 2.233-.126 3.34-.38 1.106-.253 2.1-.66 2.98-1.22.88-.561 1.593-1.28 2.14-2.16.546-.88.82-1.934.82-3.16 0-1.44-.313-2.58-.94-3.42s-1.427-1.506-2.4-2c-.974-.493-2.054-.866-3.24-1.12-1.187-.253-2.327-.513-3.42-.78-1.146-.266-2.293-.546-3.44-.84-1.147-.293-2.18-.7-3.1-1.22-.92-.521-1.66-1.213-2.22-2.08-.56-.866-.84-1.993-.84-3.38 0-1.413.293-2.593.88-3.54.586-.946 1.346-1.7 2.28-2.26.933-.561 1.98-.96 3.14-1.2s2.313-.36 3.46-.36c1.413 0 2.713.154 3.9.46 1.187.308 2.227.8 3.12 1.48s1.606 1.573 2.14 2.68c.533 1.107.84 2.46.92 4.061h-.8c-.054-1.47-.327-2.7-.820-3.7z"/>
|
29
|
+
<path d="m74.522 176.3c-.494-1-1.147-1.813-1.96-2.44-.813-.626-1.78-1.073-2.9-1.34s-2.32-.4-3.6-.4c-.987 0-2.014.101-3.08.301-1.067.199-2.034.554-2.9 1.06-.867.507-1.58 1.18-2.14 2.021-.56.84-.84 1.899-.84 3.18s.286 2.307.86 3.08c.573.773 1.32 1.399 2.24 1.88.92.479 1.966.854 3.14 1.12 1.173.267 2.373.547 3.6.84 1.333.347 2.593.68 3.78 1 1.186.32 2.22.747 3.1 1.28s1.58 1.239 2.1 2.12c.52.88.78 2.066.78 3.56 0 1.36-.294 2.52-.88 3.48-.587.96-1.36 1.753-2.32 2.38s-2.04 1.08-3.24 1.359c-1.2.28-2.414.42-3.64.42-1.627 0-3.127-.187-4.5-.56-1.374-.373-2.56-.967-3.56-1.78-1-.812-1.774-1.859-2.32-3.14-.547-1.28-.807-2.826-.78-4.641h.8c0 1.707.253 3.154.76 4.341.506 1.187 1.22 2.153 2.14 2.899.92.747 2.013 1.287 3.28 1.62 1.267.334 2.66.5 4.18.5 1.12 0 2.233-.126 3.34-.38 1.106-.253 2.1-.66 2.98-1.22.88-.561 1.593-1.28 2.14-2.16.546-.88.82-1.934.82-3.16 0-1.44-.313-2.58-.94-3.42s-1.427-1.506-2.4-2c-.974-.493-2.054-.866-3.24-1.12-1.187-.253-2.327-.513-3.42-.78-1.146-.266-2.293-.546-3.44-.84-1.147-.293-2.18-.7-3.1-1.22-.92-.521-1.66-1.213-2.22-2.08-.56-.866-.84-1.993-.84-3.38 0-1.413.293-2.593.88-3.54.586-.946 1.346-1.7 2.28-2.26.933-.561 1.98-.96 3.14-1.2s2.313-.36 3.46-.36c1.413 0 2.713.154 3.9.46 1.187.308 2.227.8 3.12 1.48s1.606 1.573 2.14 2.68c.533 1.107.84 2.46.92 4.061h-.8c-.053-1.47-.326-2.7-.820-3.7z"/>
|
30
|
+
<path d="m88.702 189.44v.8h-7v-.8h7z"/>
|
31
|
+
<path d="m94.942 185.76c.48-1.866 1.426-3.373 2.84-4.521 1.413-1.146 3.213-1.72 5.4-1.72 1.413 0 2.667.294 3.76.88 1.093.587 2.006 1.374 2.74 2.36s1.293 2.134 1.68 3.439c.386 1.308.58 2.681.58 4.12 0 1.547-.2 2.974-.6 4.28s-.98 2.434-1.74 3.38c-.76.947-1.68 1.687-2.76 2.22s-2.3.801-3.66.801c-2.107 0-3.874-.573-5.3-1.721-1.427-1.146-2.407-2.64-2.94-4.479h-.08v5.76h-.8v-28.56h.8v13.76h.082zm.480 8.36c.373 1.2.913 2.254 1.62 3.16.706.907 1.58 1.627 2.62 2.16 1.04.534 2.213.8 3.52.8 1.333 0 2.5-.266 3.5-.8 1-.533 1.827-1.26 2.48-2.18s1.146-1.98 1.48-3.181c.333-1.199.5-2.453.5-3.76 0-1.2-.153-2.393-.46-3.58-.307-1.186-.78-2.253-1.42-3.199s-1.46-1.721-2.46-2.32c-1-.601-2.207-.9-3.62-.9-2.507 0-4.52.86-6.04 2.58s-2.28 4.194-2.28 7.42c.002 1.33.188 2.6.562 3.8z"/>
|
32
|
+
<path d="m116.1 183.66c.347-.84.847-1.565 1.5-2.18.653-.613 1.453-1.093 2.4-1.439.946-.347 2.06-.521 3.34-.521.906 0 1.766.094 2.58.28.813.187 1.526.514 2.14.979.613.467 1.106 1.074 1.48 1.82.373.747.573 1.68.6 2.8v13.08c0 .4.08.693.24.88.16.188.373.313.64.38.266.067.553.094.86.08.306-.013.593-.033.86-.06v.8h-1.2c-.587 0-1.1-.14-1.54-.42s-.66-.807-.66-1.58v-2.68h-.08c-.214.667-.554 1.307-1.02 1.92-.467.613-1.054 1.16-1.76 1.64-.707.48-1.514.86-2.42 1.14-.907.28-1.894.421-2.96.421-2.08 0-3.747-.46-5-1.381-1.253-.92-1.88-2.3-1.88-4.14 0-1.28.207-2.307.62-3.08s.953-1.38 1.62-1.82c.666-.439 1.426-.746 2.28-.92.853-.173 1.707-.286 2.56-.34 1.413-.08 2.626-.153 3.64-.22 1.013-.066 1.846-.2 2.5-.4.653-.199 1.133-.506 1.44-.92.306-.413.46-1.006.46-1.779 0-.613-.054-1.254-.16-1.921-.107-.666-.367-1.279-.78-1.84-.414-.56-1.02-1.02-1.82-1.38-.8-.359-1.88-.54-3.24-.54-2.16 0-3.84.527-5.04 1.58-1.2 1.054-1.867 2.54-2 4.46h-.8c.05-.96.25-1.86.60-2.7zm13.16 4.82c-.267.374-.68.66-1.24.86s-1.2.354-1.92.46c-.72.106-1.5.174-2.34.2s-1.66.066-2.46.119c-.8.054-1.58.154-2.34.301-.76.146-1.434.413-2.02.8-.587.387-1.054.92-1.4 1.6-.347.681-.52 1.567-.52 2.66 0 .587.1 1.167.3 1.74s.54 1.08 1.02 1.52c.48.44 1.1.801 1.86 1.08.76.28 1.7.42 2.82.42 1.333 0 2.52-.226 3.56-.68 1.04-.453 1.913-1.046 2.62-1.78.707-.732 1.24-1.58 1.6-2.54s.54-1.946.54-2.96v-3.8h-.08z"/>
|
33
|
+
<path d="m147.7 183.44c-.32-.72-.774-1.313-1.36-1.78-.586-.466-1.287-.806-2.1-1.02-.814-.213-1.714-.32-2.7-.32-1.44 0-2.574.194-3.4.58-.827.387-1.44.827-1.84 1.32s-.654.979-.76 1.46c-.107.479-.16.813-.16 1 0 1.014.207 1.794.62 2.34.413.547.966.967 1.66 1.26.72.294 1.5.547 2.34.761.84.213 1.82.467 2.94.76.8.214 1.593.434 2.38.66.786.227 1.493.54 2.12.939.626.4 1.133.907 1.52 1.521.386.613.58 1.413.58 2.399 0 1.04-.22 1.92-.66 2.641-.44.72-1.014 1.307-1.72 1.76-.707.453-1.507.78-2.4.979-.894.2-1.78.301-2.66.301-2.747 0-4.82-.601-6.22-1.801-1.4-1.199-2.1-3.093-2.1-5.68h.8c0 2.32.646 4.021 1.94 5.1 1.293 1.08 3.153 1.62 5.58 1.62.746 0 1.513-.086 2.3-.26.787-.173 1.5-.453 2.14-.84s1.167-.887 1.58-1.5c.413-.613.62-1.36.62-2.24 0-.906-.207-1.64-.62-2.2-.414-.56-.947-1.02-1.6-1.38-.654-.359-1.407-.646-2.26-.859-.854-.214-1.72-.427-2.6-.641-.987-.24-1.854-.466-2.6-.68-.747-.213-1.414-.453-2-.72-.854-.373-1.48-.894-1.88-1.561-.4-.666-.6-1.56-.6-2.68 0-.561.12-1.146.36-1.76.24-.613.64-1.174 1.2-1.681.56-.506 1.28-.92 2.16-1.239.88-.32 1.96-.48 3.24-.48 2.293 0 4.106.521 5.44 1.56 1.333 1.04 2 2.707 2 5h-.8c0-1.04-.16-1.92-.48-2.64z"/>
|
34
|
+
<path d="m153.4 194.3c.307 1.187.78 2.22 1.42 3.1s1.466 1.574 2.48 2.08c1.013.507 2.253.76 3.72.76 2.16 0 3.953-.566 5.38-1.699 1.426-1.134 2.313-2.834 2.66-5.101h.8c-.293 2.4-1.24 4.26-2.84 5.58s-3.574 1.98-5.92 1.98c-1.6.025-2.967-.228-4.1-.761-1.134-.533-2.06-1.286-2.78-2.26-.72-.973-1.254-2.12-1.6-3.439-.347-1.32-.52-2.74-.52-4.261 0-1.706.253-3.226.76-4.56.506-1.333 1.173-2.46 2-3.38s1.787-1.62 2.88-2.101c1.093-.479 2.213-.72 3.36-.72 1.6 0 2.98.307 4.14.92 1.16.614 2.106 1.427 2.84 2.44.733 1.014 1.266 2.174 1.6 3.479.333 1.307.473 2.667.42 4.08h-17.2c.03 1.39.19 2.67.50 3.86zm15.38-8.24c-.347-1.133-.86-2.126-1.54-2.98-.68-.853-1.527-1.525-2.54-2.02-1.014-.493-2.187-.74-3.52-.74-1.12 0-2.167.214-3.14.641-.974.427-1.827 1.047-2.56 1.859-.733.814-1.327 1.794-1.78 2.94-.454 1.146-.72 2.439-.8 3.88h16.4c0-1.25-.17-2.45-.52-3.58z"/>
|
35
|
+
<path d="m190.1 172v28.56h-.8v-5.76h-.08c-.534 1.84-1.514 3.334-2.94 4.479-1.427 1.147-3.194 1.721-5.3 1.721-1.36 0-2.58-.268-3.66-.801s-2-1.272-2.76-2.22c-.76-.946-1.34-2.073-1.74-3.38s-.6-2.733-.6-4.28c0-1.439.193-2.812.58-4.12.386-1.306.946-2.453 1.68-3.439s1.646-1.773 2.74-2.36c1.093-.586 2.346-.88 3.76-.88 2.187 0 3.986.574 5.4 1.72 1.414 1.147 2.36 2.654 2.84 4.521h.08v-13.76h.80zm-3.08 10.9c-1.52-1.72-3.534-2.58-6.04-2.58-1.387 0-2.587.3-3.6.9-1.014.6-1.84 1.374-2.48 2.32s-1.114 2.014-1.42 3.199c-.307 1.188-.46 2.38-.46 3.58 0 1.307.167 2.561.5 3.76.333 1.2.826 2.261 1.48 3.181.653.92 1.48 1.646 2.48 2.18s2.167.8 3.5.8 2.513-.266 3.54-.8c1.026-.533 1.893-1.253 2.6-2.16.706-.906 1.246-1.96 1.62-3.16.373-1.199.56-2.466.56-3.8 0-3.23-.76-5.7-2.28-7.42z"/>
|
36
|
+
<path d="m224.12 176.3c-.494-1-1.147-1.813-1.96-2.44-.813-.626-1.78-1.073-2.9-1.34s-2.32-.4-3.6-.4c-.987 0-2.014.101-3.08.301-1.067.199-2.034.554-2.9 1.06-.867.507-1.58 1.18-2.14 2.021-.56.84-.84 1.899-.84 3.18s.286 2.307.86 3.08c.573.773 1.32 1.399 2.24 1.88.92.479 1.966.854 3.14 1.12 1.173.267 2.373.547 3.6.84 1.333.347 2.593.68 3.78 1 1.186.32 2.22.747 3.1 1.28s1.58 1.239 2.1 2.12c.52.88.78 2.066.78 3.56 0 1.36-.294 2.52-.88 3.48-.587.96-1.36 1.753-2.32 2.38s-2.04 1.08-3.24 1.359c-1.2.28-2.414.42-3.64.42-1.627 0-3.127-.187-4.5-.56-1.374-.373-2.56-.967-3.56-1.78-1-.812-1.774-1.859-2.32-3.14-.547-1.28-.807-2.826-.78-4.641h.8c0 1.707.253 3.154.76 4.341.506 1.187 1.22 2.153 2.14 2.899.92.747 2.013 1.287 3.28 1.62 1.267.334 2.66.5 4.18.5 1.12 0 2.233-.126 3.34-.38 1.106-.253 2.1-.66 2.98-1.22.88-.561 1.593-1.28 2.14-2.16.546-.88.82-1.934.82-3.16 0-1.44-.313-2.58-.94-3.42s-1.427-1.506-2.4-2c-.974-.493-2.054-.866-3.24-1.12-1.187-.253-2.327-.513-3.42-.78-1.146-.266-2.293-.546-3.44-.84-1.147-.293-2.18-.7-3.1-1.22-.92-.521-1.66-1.213-2.22-2.08-.56-.866-.84-1.993-.84-3.38 0-1.413.293-2.593.88-3.54.586-.946 1.346-1.7 2.28-2.26.933-.561 1.98-.96 3.14-1.2s2.313-.36 3.46-.36c1.413 0 2.713.154 3.9.46 1.187.308 2.227.8 3.12 1.48s1.606 1.573 2.14 2.68c.533 1.107.84 2.46.92 4.061h-.8c-.05-1.47-.33-2.7-.82-3.7z"/>
|
37
|
+
<path d="m231.14 172v28.56h-.8v-28.56h.80z"/>
|
38
|
+
<path d="m235.54 176.04v-4.04h.8v4.04h-.80zm0 24.52v-20.56h.8v20.56h-.80z"/>
|
39
|
+
<path d="m257.54 172v28.56h-.8v-5.76h-.08c-.534 1.84-1.514 3.334-2.94 4.479-1.427 1.147-3.194 1.721-5.3 1.721-1.36 0-2.58-.268-3.66-.801s-2-1.272-2.76-2.22c-.76-.946-1.34-2.073-1.74-3.38s-.6-2.733-.6-4.28c0-1.439.193-2.812.58-4.12.386-1.306.946-2.453 1.68-3.439s1.646-1.773 2.74-2.36c1.093-.586 2.346-.88 3.76-.88 2.187 0 3.986.574 5.4 1.72 1.414 1.147 2.36 2.654 2.84 4.521h.08v-13.76h.80zm-3.08 10.9c-1.52-1.72-3.534-2.58-6.04-2.58-1.387 0-2.587.3-3.6.9-1.014.6-1.84 1.374-2.48 2.32s-1.114 2.014-1.42 3.199c-.307 1.188-.46 2.38-.46 3.58 0 1.307.167 2.561.5 3.76.333 1.2.826 2.261 1.48 3.181.653.92 1.48 1.646 2.48 2.18s2.167.8 3.5.8 2.513-.266 3.54-.8c1.026-.533 1.893-1.253 2.6-2.16.706-.906 1.247-1.96 1.62-3.16.373-1.199.561-2.466.561-3.8 0-3.23-.76-5.7-2.28-7.42z"/>
|
40
|
+
<path d="m262.32 194.3c.307 1.187.78 2.22 1.42 3.1.641.88 1.467 1.574 2.48 2.08 1.013.507 2.253.76 3.72.76 2.16 0 3.953-.566 5.38-1.699 1.427-1.134 2.313-2.834 2.66-5.101h.8c-.294 2.4-1.24 4.26-2.84 5.58s-3.573 1.98-5.92 1.98c-1.6.025-2.967-.228-4.1-.761-1.134-.533-2.061-1.286-2.78-2.26-.72-.973-1.254-2.12-1.601-3.439-.347-1.32-.52-2.74-.52-4.261 0-1.706.253-3.226.76-4.56.507-1.333 1.174-2.46 2-3.38s1.786-1.62 2.88-2.101c1.094-.479 2.214-.72 3.36-.72 1.6 0 2.98.307 4.14.92 1.16.614 2.106 1.427 2.841 2.44.732 1.014 1.266 2.174 1.6 3.479.333 1.307.473 2.667.42 4.08h-17.2c.03 1.39.19 2.67.50 3.86zm15.38-8.24c-.347-1.133-.859-2.126-1.54-2.98-.68-.853-1.526-1.525-2.54-2.02-1.014-.493-2.187-.74-3.52-.74-1.12 0-2.167.214-3.14.641-.975.427-1.827 1.047-2.561 1.859-.733.814-1.327 1.794-1.78 2.94s-.72 2.439-.8 3.88h16.4c0-1.25-.17-2.45-.52-3.58z"/>
|
41
|
+
<path d="m300.44 176.3c-.494-1-1.146-1.813-1.96-2.44-.813-.626-1.78-1.073-2.9-1.34-1.119-.267-2.319-.4-3.6-.4-.987 0-2.014.101-3.08.301-1.066.199-2.033.554-2.899 1.06-.867.507-1.58 1.18-2.141 2.021-.56.84-.84 1.899-.84 3.18s.286 2.307.86 3.08c.573.773 1.319 1.399 2.239 1.88.92.479 1.967.854 3.141 1.12 1.173.267 2.373.547 3.6.84 1.333.347 2.594.68 3.78 1s2.22.747 3.1 1.28 1.58 1.239 2.101 2.12c.52.88.779 2.066.779 3.56 0 1.36-.293 2.52-.88 3.48s-1.359 1.753-2.319 2.38-2.04 1.08-3.24 1.359c-1.2.28-2.414.42-3.641.42-1.626 0-3.126-.187-4.5-.56-1.373-.373-2.56-.967-3.56-1.78-1-.812-1.773-1.859-2.32-3.14s-.807-2.826-.779-4.641h.8c0 1.707.253 3.154.76 4.341.506 1.187 1.22 2.153 2.14 2.899.921.747 2.014 1.287 3.28 1.62 1.267.334 2.66.5 4.18.5 1.12 0 2.233-.126 3.341-.38 1.105-.253 2.1-.66 2.979-1.22.88-.561 1.594-1.28 2.141-2.16.546-.88.819-1.934.819-3.16 0-1.44-.313-2.58-.939-3.42-.627-.84-1.427-1.506-2.4-2-.974-.493-2.054-.866-3.24-1.12-1.187-.253-2.326-.513-3.42-.78-1.146-.266-2.294-.546-3.439-.84-1.147-.293-2.181-.7-3.101-1.22-.92-.521-1.66-1.213-2.22-2.08-.56-.866-.84-1.993-.84-3.38 0-1.413.293-2.593.88-3.54.586-.946 1.346-1.7 2.28-2.26.933-.561 1.979-.96 3.14-1.2s2.313-.36 3.46-.36c1.413 0 2.713.154 3.9.46 1.186.308 2.226.8 3.12 1.48.893.68 1.605 1.573 2.14 2.68.533 1.107.84 2.46.92 4.061h-.8c-.05-1.47-.33-2.7-.82-3.7z"/>
|
42
|
+
<path d="m307.46 172v13.079h.08c.187-.8.486-1.532.9-2.199.413-.667.933-1.254 1.56-1.761.626-.506 1.354-.899 2.18-1.18s1.746-.42 2.761-.42c1.065 0 2.046.16 2.939.48.894.319 1.666.793 2.32 1.42.653.627 1.16 1.399 1.52 2.319s.54 1.98.54 3.181v13.64h-.8v-13.52c0-1.2-.174-2.221-.52-3.061-.348-.84-.82-1.533-1.421-2.08-.6-.546-1.293-.946-2.079-1.2-.787-.253-1.62-.38-2.5-.38-1.228 0-2.308.234-3.24.7-.934.467-1.714 1.094-2.34 1.88-.627.787-1.101 1.7-1.42 2.74-.32 1.04-.48 2.134-.48 3.28v11.64h-.8v-28.56h.80z"/>
|
43
|
+
<path d="m326.18 186.22c.4-1.293.993-2.434 1.78-3.42.786-.986 1.753-1.78 2.9-2.38 1.146-.601 2.479-.9 4-.9 1.493 0 2.812.3 3.96.9 1.146.6 2.112 1.394 2.899 2.38.786.986 1.38 2.127 1.78 3.42.4 1.294.6 2.646.6 4.06s-.199 2.768-.6 4.061c-.4 1.294-.994 2.434-1.78 3.42-.787.986-1.754 1.773-2.899 2.359-1.147.587-2.48.881-4 .881-1.494 0-2.814-.294-3.96-.881-1.147-.586-2.114-1.373-2.9-2.359-.787-.986-1.38-2.126-1.78-3.42-.399-1.293-.6-2.646-.6-4.061 0-1.41.20-2.77.60-4.06zm.74 7.82c.36 1.199.9 2.26 1.62 3.18s1.606 1.653 2.66 2.2c1.053.547 2.272.819 3.66.819 1.359 0 2.565-.272 3.619-.819s1.94-1.28 2.66-2.2c.721-.92 1.261-1.98 1.62-3.18.36-1.2.54-2.453.54-3.761 0-1.279-.18-2.52-.54-3.72-.359-1.2-.899-2.26-1.62-3.18-.72-.92-1.606-1.66-2.66-2.221-1.054-.56-2.26-.84-3.619-.84-1.388 0-2.607.28-3.66.84-1.054.561-1.94 1.301-2.66 2.221s-1.26 1.979-1.62 3.18-.54 2.44-.54 3.72c0 1.31.18 2.56.54 3.76z"/>
|
44
|
+
<path d="m372.94 180l-6.56 20.56h-1.04l-6.4-19.76h-.08l-6.439 19.76h-1.12l-6.36-20.56h.761l6.119 19.76h.08l6.36-19.76h1.24l6.319 19.76h.08l6.24-19.76h.80z"/>
|
45
|
+
<path d="m404.16 176.3c-.494-1-1.146-1.813-1.96-2.44-.813-.626-1.78-1.073-2.9-1.34-1.119-.267-2.319-.4-3.6-.4-.987 0-2.014.101-3.08.301-1.066.199-2.033.554-2.899 1.06-.867.507-1.58 1.18-2.141 2.021-.56.84-.84 1.899-.84 3.18s.286 2.307.86 3.08c.573.773 1.319 1.399 2.239 1.88.92.479 1.967.854 3.141 1.12 1.173.267 2.373.547 3.6.84 1.333.347 2.594.68 3.78 1s2.22.747 3.1 1.28 1.58 1.239 2.101 2.12c.52.88.779 2.066.779 3.56 0 1.36-.293 2.52-.88 3.48s-1.359 1.753-2.319 2.38-2.04 1.08-3.24 1.359c-1.2.28-2.414.42-3.641.42-1.626 0-3.126-.187-4.5-.56-1.373-.373-2.56-.967-3.56-1.78-1-.812-1.773-1.859-2.32-3.14s-.807-2.826-.779-4.641h.8c0 1.707.253 3.154.76 4.341.506 1.187 1.22 2.153 2.14 2.899.921.747 2.014 1.287 3.28 1.62 1.267.334 2.66.5 4.18.5 1.12 0 2.233-.126 3.341-.38 1.105-.253 2.1-.66 2.979-1.22.88-.561 1.594-1.28 2.141-2.16.546-.88.819-1.934.819-3.16 0-1.44-.313-2.58-.939-3.42-.627-.84-1.427-1.506-2.4-2-.974-.493-2.054-.866-3.24-1.12-1.187-.253-2.326-.513-3.42-.78-1.146-.266-2.294-.546-3.439-.84-1.147-.293-2.181-.7-3.101-1.22-.92-.521-1.66-1.213-2.22-2.08-.56-.866-.84-1.993-.84-3.38 0-1.413.293-2.593.88-3.54.586-.946 1.346-1.7 2.28-2.26.933-.561 1.979-.96 3.14-1.2s2.313-.36 3.46-.36c1.413 0 2.713.154 3.9.46 1.186.308 2.226.8 3.12 1.48.893.68 1.605 1.573 2.14 2.68.533 1.107.84 2.46.92 4.061h-.8c-.05-1.47-.33-2.7-.82-3.7z"/>
|
46
|
+
<path d="m424.94 180l-9.479 24.72c-.268.693-.587 1.233-.96 1.62-.374.386-.787.673-1.24.859-.454.187-.954.301-1.5.341-.547.039-1.127.06-1.74.06v-.8c.693 0 1.286-.021 1.78-.061.493-.04.92-.146 1.28-.319.359-.174.68-.44.96-.801.279-.359.54-.847.779-1.46l1.48-3.8-8.56-20.36h.841l8.159 19.479 7.36-19.479h.84z"/>
|
47
|
+
<path d="m439.58 183.44c-.32-.72-.773-1.313-1.36-1.78-.587-.466-1.287-.806-2.1-1.02-.813-.213-1.714-.32-2.7-.32-1.44 0-2.573.194-3.4.58-.826.387-1.439.827-1.84 1.32-.399.493-.653.979-.76 1.46-.106.479-.16.813-.16 1 0 1.014.206 1.794.62 2.34.413.547.967.967 1.66 1.26.72.294 1.5.547 2.34.761.84.213 1.82.467 2.94.76.8.214 1.593.434 2.38.66.786.227 1.493.54 2.12.939.626.4 1.133.907 1.52 1.521s.58 1.413.58 2.399c0 1.04-.22 1.92-.66 2.641-.439.72-1.014 1.307-1.72 1.76-.707.453-1.507.78-2.4.979-.894.2-1.779.301-2.66.301-2.746 0-4.819-.601-6.22-1.801-1.399-1.199-2.1-3.093-2.1-5.68h.8c0 2.32.646 4.021 1.94 5.1 1.293 1.08 3.152 1.62 5.579 1.62.747 0 1.514-.086 2.301-.26.786-.173 1.5-.453 2.14-.84s1.166-.887 1.58-1.5c.413-.613.62-1.36.62-2.24 0-.906-.207-1.64-.62-2.2-.414-.56-.947-1.02-1.6-1.38-.654-.359-1.407-.646-2.261-.859-.854-.214-1.72-.427-2.6-.641-.987-.24-1.854-.466-2.6-.68-.747-.213-1.414-.453-2-.72-.854-.373-1.48-.894-1.881-1.561-.399-.666-.6-1.56-.6-2.68 0-.561.12-1.146.36-1.76.239-.613.64-1.174 1.199-1.681.561-.506 1.28-.92 2.16-1.239.88-.32 1.96-.48 3.24-.48 2.293 0 4.106.521 5.44 1.56 1.333 1.04 2 2.707 2 5h-.801c0-1.04-.16-1.92-.48-2.64z"/>
|
48
|
+
<path d="m447.38 196.56c0 .773.086 1.374.26 1.8.173.427.393.747.66.96.266.214.56.34.88.38.319.04.64.061.96.061.399 0 .76-.007 1.08-.021.319-.013.546-.046.68-.1v.8c-.24.027-.474.054-.7.08-.227.027-.646.04-1.26.04-.934 0-1.727-.273-2.38-.82-.654-.546-.98-1.553-.98-3.02v-15.92h-3.76v-.80h3.76v-6.48h.801v6.48h4.64v.8h-4.64v15.76z"/>
|
49
|
+
<path d="m454.92 194.3c.307 1.187.78 2.22 1.42 3.1.641.88 1.467 1.574 2.48 2.08 1.013.507 2.253.76 3.72.76 2.16 0 3.953-.566 5.38-1.699 1.427-1.134 2.313-2.834 2.66-5.101h.8c-.294 2.4-1.24 4.26-2.84 5.58s-3.573 1.98-5.92 1.98c-1.6.025-2.967-.228-4.1-.761-1.134-.533-2.061-1.286-2.78-2.26-.72-.973-1.254-2.12-1.601-3.439-.347-1.32-.52-2.74-.52-4.261 0-1.706.253-3.226.76-4.56.507-1.333 1.174-2.46 2-3.38s1.786-1.62 2.88-2.101c1.094-.479 2.214-.72 3.36-.72 1.6 0 2.98.307 4.14.92 1.16.614 2.106 1.427 2.841 2.44.732 1.014 1.266 2.174 1.6 3.479.333 1.307.473 2.667.42 4.08h-17.2c.02 1.39.19 2.67.50 3.86zm15.38-8.24c-.347-1.133-.859-2.126-1.54-2.98-.68-.853-1.526-1.525-2.54-2.02-1.014-.493-2.187-.74-3.52-.74-1.12 0-2.167.214-3.14.641-.975.427-1.827 1.047-2.561 1.859-.733.814-1.327 1.794-1.78 2.94s-.72 2.439-.8 3.88h16.4c0-1.25-.18-2.45-.52-3.58z"/>
|
50
|
+
<path d="m475.62 180v5.079h.08c.187-.8.479-1.532.88-2.199s.894-1.254 1.48-1.761c.586-.506 1.232-.899 1.939-1.18.706-.28 1.46-.42 2.26-.42 1.601-.053 2.94.354 4.021 1.22 1.08.867 1.793 2.061 2.14 3.58h.08c.4-1.439 1.187-2.6 2.36-3.479 1.173-.88 2.56-1.32 4.16-1.32 1.253 0 2.293.187 3.119.56.827.374 1.493.888 2 1.54.507.654.867 1.44 1.08 2.36.214.92.32 1.94.32 3.061v13.52h-.8v-13.52c0-1.014-.087-1.934-.26-2.761-.174-.826-.48-1.533-.92-2.12-.44-.586-1.027-1.04-1.761-1.359-.733-.32-1.66-.48-2.779-.48-.987 0-1.881.194-2.681.58-.8.387-1.479.914-2.04 1.58-.56.667-.986 1.434-1.279 2.3-.294.867-.44 1.78-.44 2.74v13.04h-.8v-13.2c0-.96-.074-1.866-.22-2.72-.147-.854-.421-1.6-.82-2.24-.4-.64-.96-1.146-1.68-1.52-.721-.373-1.654-.561-2.801-.561-1.014 0-1.934.234-2.76.7-.827.467-1.526 1.094-2.1 1.88-.574.787-1.014 1.7-1.32 2.74s-.46 2.134-.46 3.28v11.64h-.8v-20.56h.80z"/>
|
51
|
+
</g>
|
52
|
+
</svg>
|
@@ -0,0 +1,114 @@
|
|
1
|
+
/**
|
2
|
+
* Super simple syntax highlighting plugin for CSSS code snippets
|
3
|
+
* Usage: <code lang="javascript">
|
4
|
+
* @author Lea Verou
|
5
|
+
*/
|
6
|
+
|
7
|
+
(function(){
|
8
|
+
|
9
|
+
if(!document.body.insertAdjacentHTML) {
|
10
|
+
return;
|
11
|
+
}
|
12
|
+
|
13
|
+
var self = window.Highlight = {
|
14
|
+
languages: {
|
15
|
+
javascript: {
|
16
|
+
'comment': /(\/\*.*?\*\/)|\/\/.*?(\r?\n|$)/g, // TODO multiline support
|
17
|
+
'string': /(('|").*?(\2))/g, // used to be: /'.*?'|".*?"/g,
|
18
|
+
'keyword': /\b(var|let|if|else|while|do|for|return|in|instanceof|function|new|with|typeof)\b/g,
|
19
|
+
'boolean': /\b(true|false)\b/g,
|
20
|
+
'number': /\b-?(0x)?\d*\.?\d+\b/g,
|
21
|
+
'regex': /\/.+?\/[gim]{0,3}/g
|
22
|
+
}
|
23
|
+
},
|
24
|
+
|
25
|
+
isInited: function(code) {
|
26
|
+
return code.hasAttribute('data-highlighted');
|
27
|
+
},
|
28
|
+
|
29
|
+
init: function(code) {
|
30
|
+
if(!code || self.isInited(code)) {
|
31
|
+
return; // or should I rehighlight?
|
32
|
+
}
|
33
|
+
|
34
|
+
var lang = self.languages[code.getAttribute('lang')];
|
35
|
+
|
36
|
+
if(!lang) {
|
37
|
+
return;
|
38
|
+
}
|
39
|
+
|
40
|
+
code.normalize();
|
41
|
+
|
42
|
+
for(var token in lang) {
|
43
|
+
// Assumption: If there are other tags in the code, they don't cut a token in half
|
44
|
+
var textNodes = getTextNodes(code, function(node) {
|
45
|
+
var parent = node.parentNode;
|
46
|
+
return !(/span/i.test(parent.nodeName) && /^token\s/.test(parent.className));
|
47
|
+
});
|
48
|
+
|
49
|
+
for(var i=0; i<textNodes.length; i++) {
|
50
|
+
var oldNode = textNodes[i],
|
51
|
+
text = oldNode.nodeValue
|
52
|
+
.replace(/&/g, '&')
|
53
|
+
.replace(/</g, '<')
|
54
|
+
.replace(/>/g, '>');
|
55
|
+
|
56
|
+
|
57
|
+
var newText = text.replace(lang[token], function($0) {
|
58
|
+
return '<span class="token ' + token + '">' + $0 + '</span>'
|
59
|
+
});
|
60
|
+
|
61
|
+
if(newText !== text) {
|
62
|
+
replaceNodeWithHTML(oldNode, newText);
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
|
67
|
+
code.setAttribute('data-highlighted', 'true');
|
68
|
+
},
|
69
|
+
|
70
|
+
container: function(container) {
|
71
|
+
if(!container) {
|
72
|
+
return;
|
73
|
+
}
|
74
|
+
|
75
|
+
var codes = container.querySelectorAll('code[lang]');
|
76
|
+
|
77
|
+
for(var i=0; i<codes.length; i++) {
|
78
|
+
Highlight.init(codes[i]);
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
83
|
+
function getTextNodes(root, filter) {
|
84
|
+
var walker = document.createTreeWalker(root, NodeFilter.SHOW_TEXT, filter? {acceptNode: filter} : null, false),
|
85
|
+
node, textNodes = [];
|
86
|
+
|
87
|
+
while(node = walker.nextNode()) {
|
88
|
+
textNodes.push(node);
|
89
|
+
}
|
90
|
+
|
91
|
+
return textNodes;
|
92
|
+
}
|
93
|
+
|
94
|
+
function replaceNodeWithHTML(node, html) {
|
95
|
+
// Replace text node with element
|
96
|
+
var temp = document.createElement('div');
|
97
|
+
node.parentNode.replaceChild(temp, node);
|
98
|
+
|
99
|
+
// Use insertAdjacentHTML to insert the new markup
|
100
|
+
temp.insertAdjacentHTML('beforeBegin', html);
|
101
|
+
|
102
|
+
// Remove the element
|
103
|
+
temp.parentNode.removeChild(temp);
|
104
|
+
}
|
105
|
+
|
106
|
+
// Highlight current slide
|
107
|
+
function highlightSlide() {
|
108
|
+
self.container(document.getElementById(location.hash.slice(1)));
|
109
|
+
}
|
110
|
+
|
111
|
+
addEventListener('hashchange', highlightSlide, false);
|
112
|
+
addEventListener('DOMContentLoaded', highlightSlide, false);
|
113
|
+
|
114
|
+
})();
|
@@ -0,0 +1,40 @@
|
|
1
|
+
/**
|
2
|
+
* Script to make form controls control CSS styles
|
3
|
+
* Requires css-edit.js
|
4
|
+
* @author Lea Verou
|
5
|
+
* MIT License
|
6
|
+
*/
|
7
|
+
|
8
|
+
(function(){
|
9
|
+
|
10
|
+
var self = window.CSSControl = function(control) {
|
11
|
+
var me = this;
|
12
|
+
|
13
|
+
this.control = control;
|
14
|
+
|
15
|
+
// this holds the elements the CSS is gonna be applied to
|
16
|
+
this.subjects = CSSEdit.getSubjects(control);
|
17
|
+
|
18
|
+
CSSEdit.setupSubjects(control);
|
19
|
+
|
20
|
+
control.addEventListener('input', function() {
|
21
|
+
me.update();
|
22
|
+
}, false);
|
23
|
+
|
24
|
+
control.addEventListener('change', function() {
|
25
|
+
me.update();
|
26
|
+
}, false);
|
27
|
+
|
28
|
+
this.update();
|
29
|
+
};
|
30
|
+
|
31
|
+
self.prototype = {
|
32
|
+
update: function() {
|
33
|
+
// Get code
|
34
|
+
var code = this.control.getAttribute('data-style').replace(/\{value\}/gi, this.control.value);
|
35
|
+
|
36
|
+
CSSEdit.updateStyle(this.subjects, code, 'style');
|
37
|
+
}
|
38
|
+
};
|
39
|
+
|
40
|
+
})();
|
@@ -0,0 +1,132 @@
|
|
1
|
+
/**
|
2
|
+
* Dependency of CSS editing plugins like CSS Snippets or CSS Controls
|
3
|
+
* @author Lea Verou
|
4
|
+
* MIT License
|
5
|
+
*/
|
6
|
+
|
7
|
+
(function(){
|
8
|
+
|
9
|
+
var dummy = document.createElement('div');
|
10
|
+
|
11
|
+
var self = window.CSSEdit = {
|
12
|
+
isCSSValid: function(code) {
|
13
|
+
var declarationCount = code.split(':').length - 1;
|
14
|
+
|
15
|
+
dummy.removeAttribute('style');
|
16
|
+
dummy.setAttribute('style', code);
|
17
|
+
|
18
|
+
return declarationCount > 0 && dummy.style.length >= declarationCount;
|
19
|
+
},
|
20
|
+
|
21
|
+
setupSubjects: function(subjects) {
|
22
|
+
for (var i=0; i<subjects.length; i++) {
|
23
|
+
var subject = subjects[i];
|
24
|
+
|
25
|
+
subject.setAttribute('data-originalstyle', subject.getAttribute('style'));
|
26
|
+
subject.setAttribute('data-originalcssText', subject.style.cssText);
|
27
|
+
}
|
28
|
+
},
|
29
|
+
|
30
|
+
getSubjects: function(element) {
|
31
|
+
var selector = element.getAttribute('data-subject'),
|
32
|
+
subjects;
|
33
|
+
|
34
|
+
if(selector) {
|
35
|
+
subjects = self.util.toArray(document.querySelectorAll(selector)) || [];
|
36
|
+
}
|
37
|
+
else {
|
38
|
+
subjects = element.hasAttribute('data-subject')? [element] : [];
|
39
|
+
}
|
40
|
+
|
41
|
+
if(/^(input|textarea)$/i.test(element.nodeName)) {
|
42
|
+
// If no subject specified, it will be the slide
|
43
|
+
if(!subjects.length) {
|
44
|
+
// Find containing slide
|
45
|
+
var slide = SlideShow.getSlide(element.parentNode);
|
46
|
+
|
47
|
+
subjects = [slide? slide : element];
|
48
|
+
}
|
49
|
+
}
|
50
|
+
else {
|
51
|
+
subjects.unshift(element);
|
52
|
+
}
|
53
|
+
|
54
|
+
return subjects;
|
55
|
+
},
|
56
|
+
|
57
|
+
updateStyle: function(subjects, code, originalAttribute) {
|
58
|
+
code = PrefixFree.prefixCSS(code.trim());
|
59
|
+
|
60
|
+
if(code && self.isCSSValid(code)) {
|
61
|
+
dummy.setAttribute('style', code);
|
62
|
+
|
63
|
+
var appliedCode = dummy.style.cssText;
|
64
|
+
if(appliedCode.match(/\b[a-z-]+(?=:)/gi) === null) console.log('"' + appliedCode + '"');
|
65
|
+
var properties = appliedCode.match(/\b[a-z-]+(?=:)/gi), propRegex = [];
|
66
|
+
|
67
|
+
for(var i=0; i<properties.length; i++) {
|
68
|
+
properties[i] = self.util.camelCase(properties[i]);
|
69
|
+
}
|
70
|
+
|
71
|
+
for (var i=0; i<subjects.length; i++) {
|
72
|
+
var element = subjects[i],
|
73
|
+
prevStyle = subjects[i].getAttribute('style'),
|
74
|
+
style = prevStyle;
|
75
|
+
|
76
|
+
if(prevStyle && prevStyle !== 'null') {
|
77
|
+
for(var j=0; j<properties.length; j++) {
|
78
|
+
element.style[properties[i]] = null;
|
79
|
+
}
|
80
|
+
|
81
|
+
element.setAttribute('style', element.getAttribute(originalAttribute) + '; ' + code);
|
82
|
+
}
|
83
|
+
else {
|
84
|
+
element.setAttribute('style', code);
|
85
|
+
}
|
86
|
+
}
|
87
|
+
|
88
|
+
return true;
|
89
|
+
}
|
90
|
+
else {
|
91
|
+
return false;
|
92
|
+
}
|
93
|
+
},
|
94
|
+
|
95
|
+
elastic: function(textarea) {
|
96
|
+
if(!/^textarea$/i.test(textarea.nodeName)
|
97
|
+
|| !('rows' in textarea)
|
98
|
+
|| textarea.classList.contains('dont-resize')) {
|
99
|
+
return;
|
100
|
+
}
|
101
|
+
|
102
|
+
self.util.adjustHeight(textarea);
|
103
|
+
|
104
|
+
textarea.addEventListener('keyup', function(evt) {
|
105
|
+
if(evt.keyCode == 13) {
|
106
|
+
self.util.adjustHeight(this);
|
107
|
+
}
|
108
|
+
}, false);
|
109
|
+
|
110
|
+
textarea.addEventListener('input', function(evt) {
|
111
|
+
self.util.adjustHeight(this);
|
112
|
+
}, false);
|
113
|
+
},
|
114
|
+
|
115
|
+
util: {
|
116
|
+
camelCase: function(str) {
|
117
|
+
return str.replace(/-(.)/g, function($0, $1) { return $1.toUpperCase() })
|
118
|
+
},
|
119
|
+
|
120
|
+
toArray: function(collection) {
|
121
|
+
return Array.prototype.slice.apply(collection);
|
122
|
+
},
|
123
|
+
|
124
|
+
adjustHeight: function(textarea) {
|
125
|
+
textarea.rows = textarea.value.split(/\r\n?|\n/).length;
|
126
|
+
|
127
|
+
textarea.style.fontSize = Math.min(90, 100 - textarea.rows * 5) + '%';
|
128
|
+
}
|
129
|
+
}
|
130
|
+
};
|
131
|
+
|
132
|
+
})()
|