universal 0.1.9 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/head.html +2 -102
  3. data/_includes/js.html +102 -0
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2a9ddb0b8f5203e9a38d2ae4ff6c3de95b7492fb4509b652ffb512f90fa97734
4
- data.tar.gz: ffc631b2afd7b0f9b98810a27f8a135951f56e73011db7f92dd455622a73a481
3
+ metadata.gz: 51e29e72fc0e47fa0efbf0b5fc22531611a2e0c115d79511b70d3f7b734f8074
4
+ data.tar.gz: '058f1671e563930002fcba93bbb3b6a3c3fbb154b3d171c34fd514cfb3d616dc'
5
5
  SHA512:
6
- metadata.gz: ff8610842e204c77612be0b4bf5fbd081cb1db1e8d8b654fd9d4ffd64eca0c34adfe8ef624999c5a466b2556f9a48e3cb40f11a63fc778309508ee1e60ba0cb3
7
- data.tar.gz: e8aed1b4b7237a6135909d38f995cfe38ed6890176bed52c5eee4e6d9e3aa05c29a1e41b1bf6431ce4bb39c933aea5da2c9a84b62859d06d3e267002ef2804ed
6
+ metadata.gz: a29824b7f6a59716cb8c5a0097d6ef9523d7aa6a0e3e9124af37a9dd61c724b589a055263eb506095ffff91af7d5d5b0da182e244d195e0fa2d264efc53d4ca9
7
+ data.tar.gz: 385487ca16a869c9049fa02fa756c79e423f226d1bcb8a0476d013c1a1f158ae55ee1955943ae391b7abac9610861b07bef641348b89204d0a9fb5665932de01
data/_includes/head.html CHANGED
@@ -45,114 +45,14 @@
45
45
  <link href="assets/css/owl.carousel.css" rel="preload" as="style" onload="this.onload=null;this.rel='stylesheet'">
46
46
  <link href="assets/css/owl.theme.css" rel="preload" as="style" onload="this.onload=null;this.rel='stylesheet'">
47
47
  <noscript>
48
+ <link rel="stylesheet" href="assets/css/style.blue.css">
48
49
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
49
50
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
50
51
  <link rel="stylesheet" href="assets/css/animate.css">
51
52
  <link rel="stylesheet" href="assets/css/custom.css">
52
53
  <link rel="stylesheet" href="assets/css/owl.carousel.css">
53
54
  <link rel="stylesheet" href="assets/css/owl.theme.css">
54
- <link rel="stylesheet" href="assets/css/style.blue.css">
55
55
  </noscript>
56
- <script>
57
- (function( w ){
58
- "use strict";
59
- // rel=preload support test
60
- if( !w.loadCSS ){
61
- w.loadCSS = function(){};
62
- }
63
- // define on the loadCSS obj
64
- var rp = loadCSS.relpreload = {};
65
- // rel=preload feature support test
66
- // runs once and returns a function for compat purposes
67
- rp.support = (function(){
68
- var ret;
69
- try {
70
- ret = w.document.createElement( "link" ).relList.supports( "preload" );
71
- } catch (e) {
72
- ret = false;
73
- }
74
- return function(){
75
- return ret;
76
- };
77
- })();
78
-
79
- // if preload isn't supported, get an asynchronous load by using a non-matching media attribute
80
- // then change that media back to its intended value on load
81
- rp.bindMediaToggle = function( link ){
82
- // remember existing media attr for ultimate state, or default to 'all'
83
- var finalMedia = link.media || "all";
84
-
85
- function enableStylesheet(){
86
- link.media = finalMedia;
87
- }
88
-
89
- // bind load handlers to enable media
90
- if( link.addEventListener ){
91
- link.addEventListener( "load", enableStylesheet );
92
- } else if( link.attachEvent ){
93
- link.attachEvent( "onload", enableStylesheet );
94
- }
95
-
96
- // Set rel and non-applicable media type to start an async request
97
- // note: timeout allows this to happen async to let rendering continue in IE
98
- setTimeout(function(){
99
- link.rel = "stylesheet";
100
- link.media = "only x";
101
- });
102
- // also enable media after 3 seconds,
103
- // which will catch very old browsers (android 2.x, old firefox) that don't support onload on link
104
- setTimeout( enableStylesheet, 3000 );
105
- };
106
-
107
- // loop through link elements in DOM
108
- rp.poly = function(){
109
- // double check this to prevent external calls from running
110
- if( rp.support() ){
111
- return;
112
- }
113
- var links = w.document.getElementsByTagName( "link" );
114
- for( var i = 0; i < links.length; i++ ){
115
- var link = links[ i ];
116
- // qualify links to those with rel=preload and as=style attrs
117
- if( link.rel === "preload" && link.getAttribute( "as" ) === "style" && !link.getAttribute( "data-loadcss" ) ){
118
- // prevent rerunning on link
119
- link.setAttribute( "data-loadcss", true );
120
- // bind listeners to toggle media back
121
- rp.bindMediaToggle( link );
122
- }
123
- }
124
- };
125
-
126
- // if unsupported, run the polyfill
127
- if( !rp.support() ){
128
- // run once at least
129
- rp.poly();
130
-
131
- // rerun poly on an interval until onload
132
- var run = w.setInterval( rp.poly, 500 );
133
- if( w.addEventListener ){
134
- w.addEventListener( "load", function(){
135
- rp.poly();
136
- w.clearInterval( run );
137
- } );
138
- } else if( w.attachEvent ){
139
- w.attachEvent( "onload", function(){
140
- rp.poly();
141
- w.clearInterval( run );
142
- } );
143
- }
144
- }
145
-
146
-
147
- // commonjs
148
- if( typeof exports !== "undefined" ){
149
- exports.loadCSS = loadCSS;
150
- }
151
- else {
152
- w.loadCSS = loadCSS;
153
- }
154
- }( typeof global !== "undefined" ? global : this ) );
155
-
156
- </script>
56
+
157
57
 
158
58
  </head>
data/_includes/js.html CHANGED
@@ -14,6 +14,108 @@
14
14
  <!-- owl carousel -->
15
15
  <script src="assets/js/owl.carousel.min.js"></script>
16
16
 
17
+ <!-- loadCSS -->
18
+ <script>
19
+ (function( w ){
20
+ "use strict";
21
+ // rel=preload support test
22
+ if( !w.loadCSS ){
23
+ w.loadCSS = function(){};
24
+ }
25
+ // define on the loadCSS obj
26
+ var rp = loadCSS.relpreload = {};
27
+ // rel=preload feature support test
28
+ // runs once and returns a function for compat purposes
29
+ rp.support = (function(){
30
+ var ret;
31
+ try {
32
+ ret = w.document.createElement( "link" ).relList.supports( "preload" );
33
+ } catch (e) {
34
+ ret = false;
35
+ }
36
+ return function(){
37
+ return ret;
38
+ };
39
+ })();
40
+
41
+ // if preload isn't supported, get an asynchronous load by using a non-matching media attribute
42
+ // then change that media back to its intended value on load
43
+ rp.bindMediaToggle = function( link ){
44
+ // remember existing media attr for ultimate state, or default to 'all'
45
+ var finalMedia = link.media || "all";
46
+
47
+ function enableStylesheet(){
48
+ link.media = finalMedia;
49
+ }
50
+
51
+ // bind load handlers to enable media
52
+ if( link.addEventListener ){
53
+ link.addEventListener( "load", enableStylesheet );
54
+ } else if( link.attachEvent ){
55
+ link.attachEvent( "onload", enableStylesheet );
56
+ }
57
+
58
+ // Set rel and non-applicable media type to start an async request
59
+ // note: timeout allows this to happen async to let rendering continue in IE
60
+ setTimeout(function(){
61
+ link.rel = "stylesheet";
62
+ link.media = "only x";
63
+ });
64
+ // also enable media after 3 seconds,
65
+ // which will catch very old browsers (android 2.x, old firefox) that don't support onload on link
66
+ setTimeout( enableStylesheet, 3000 );
67
+ };
68
+
69
+ // loop through link elements in DOM
70
+ rp.poly = function(){
71
+ // double check this to prevent external calls from running
72
+ if( rp.support() ){
73
+ return;
74
+ }
75
+ var links = w.document.getElementsByTagName( "link" );
76
+ for( var i = 0; i < links.length; i++ ){
77
+ var link = links[ i ];
78
+ // qualify links to those with rel=preload and as=style attrs
79
+ if( link.rel === "preload" && link.getAttribute( "as" ) === "style" && !link.getAttribute( "data-loadcss" ) ){
80
+ // prevent rerunning on link
81
+ link.setAttribute( "data-loadcss", true );
82
+ // bind listeners to toggle media back
83
+ rp.bindMediaToggle( link );
84
+ }
85
+ }
86
+ };
87
+
88
+ // if unsupported, run the polyfill
89
+ if( !rp.support() ){
90
+ // run once at least
91
+ rp.poly();
92
+
93
+ // rerun poly on an interval until onload
94
+ var run = w.setInterval( rp.poly, 500 );
95
+ if( w.addEventListener ){
96
+ w.addEventListener( "load", function(){
97
+ rp.poly();
98
+ w.clearInterval( run );
99
+ } );
100
+ } else if( w.attachEvent ){
101
+ w.attachEvent( "onload", function(){
102
+ rp.poly();
103
+ w.clearInterval( run );
104
+ } );
105
+ }
106
+ }
107
+
108
+
109
+ // commonjs
110
+ if( typeof exports !== "undefined" ){
111
+ exports.loadCSS = loadCSS;
112
+ }
113
+ else {
114
+ w.loadCSS = loadCSS;
115
+ }
116
+ }( typeof global !== "undefined" ? global : this ) );
117
+
118
+ </script>
17
119
 
18
120
  <script>
19
121
  (function(i, s, o, g, r, a, m) {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: universal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ondrej Svestka
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-04 00:00:00.000000000 Z
11
+ date: 2017-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll