mtl 1.1.7 → 1.1.8
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.
- checksums.yaml +4 -4
- data/app/assets/javascripts/mtl.js +1 -1
- data/app/assets/stylesheets/mtl/all.scss +4 -0
- data/lib/mtl/version.rb +2 -2
- data/package.json +1 -1
- data/vendor/assets/javascripts/materialize/cards.js +13 -3
- data/vendor/assets/javascripts/materialize/carousel.js +78 -28
- data/vendor/assets/javascripts/materialize/chips.js +27 -27
- data/vendor/assets/javascripts/materialize/collapsible.js +34 -11
- data/vendor/assets/javascripts/materialize/date_picker/picker.date.js +137 -136
- data/vendor/assets/javascripts/materialize/date_picker/picker.js +0 -1
- data/vendor/assets/javascripts/materialize/date_picker/picker.time.js +686 -0
- data/vendor/assets/javascripts/materialize/dropdown.js +19 -12
- data/vendor/assets/javascripts/materialize/forms.js +98 -72
- data/vendor/assets/javascripts/materialize/global.js +14 -1
- data/vendor/assets/javascripts/materialize/jquery.easing.1.4.js +166 -0
- data/vendor/assets/javascripts/materialize/materialbox.js +48 -44
- data/vendor/assets/javascripts/materialize/modal.js +2 -1
- data/vendor/assets/javascripts/materialize/scrollspy.js +10 -5
- data/vendor/assets/javascripts/materialize/sideNav.js +44 -14
- data/vendor/assets/javascripts/materialize/slider.js +3 -3
- data/vendor/assets/javascripts/materialize/tabs.js +17 -7
- data/vendor/assets/javascripts/materialize/tapTarget.js +187 -0
- data/vendor/assets/javascripts/materialize/transitions.js +2 -2
- data/vendor/assets/javascripts/materialize/waves.js +1 -1
- data/vendor/assets/javascripts/pdfobject.js +1 -1
- data/vendor/assets/stylesheets/materialize/_buttons.scss +11 -12
- data/vendor/assets/stylesheets/materialize/_cards.scss +3 -0
- data/vendor/assets/stylesheets/materialize/_carousel.scss +7 -1
- data/vendor/assets/stylesheets/materialize/_chips.scss +6 -1
- data/vendor/assets/stylesheets/materialize/_collapsible.scss +1 -0
- data/vendor/assets/stylesheets/materialize/_color.scss +1 -1
- data/vendor/assets/stylesheets/materialize/_dropdown.scss +3 -0
- data/vendor/assets/stylesheets/materialize/_global.scss +18 -23
- data/vendor/assets/stylesheets/materialize/_grid.scss +44 -35
- data/vendor/assets/stylesheets/materialize/_modal.scss +2 -2
- data/vendor/assets/stylesheets/materialize/_preloader.scss +3 -3
- data/vendor/assets/stylesheets/materialize/_pulse.scss +34 -0
- data/vendor/assets/stylesheets/materialize/_sideNav.scss +17 -11
- data/vendor/assets/stylesheets/materialize/_tapTarget.scss +103 -0
- data/vendor/assets/stylesheets/materialize/_variables.scss +15 -6
- data/vendor/assets/stylesheets/materialize/date_picker/_default.date.scss +48 -27
- data/vendor/assets/stylesheets/materialize/date_picker/_default.scss +10 -0
- data/vendor/assets/stylesheets/materialize/date_picker/_default.time.scss +155 -13
- data/vendor/assets/stylesheets/materialize/forms/_input-fields.scss +18 -12
- data/vendor/assets/stylesheets/materialize/forms/_range.scss +3 -2
- data/vendor/assets/stylesheets/materialize/forms/_switches.scss +30 -17
- metadata +7 -7
- data/vendor/assets/javascripts/materialize/init.js +0 -211
- data/vendor/assets/javascripts/materialize/jquery.easing.1.3.js +0 -205
- data/vendor/assets/javascripts/materialize/jquery.timeago.min.js +0 -1
- data/vendor/assets/javascripts/materialize/prism.js +0 -8
- data/vendor/assets/stylesheets/materialize/_prefixer.scss +0 -384
@@ -1,211 +0,0 @@
|
|
1
|
-
(function($){
|
2
|
-
$(function(){
|
3
|
-
|
4
|
-
var window_width = $(window).width();
|
5
|
-
|
6
|
-
// convert rgb to hex value string
|
7
|
-
function rgb2hex(rgb) {
|
8
|
-
if (/^#[0-9A-F]{6}$/i.test(rgb)) { return rgb; }
|
9
|
-
|
10
|
-
rgb = rgb.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);
|
11
|
-
|
12
|
-
if (rgb === null) { return "N/A"; }
|
13
|
-
|
14
|
-
function hex(x) {
|
15
|
-
return ("0" + parseInt(x).toString(16)).slice(-2);
|
16
|
-
}
|
17
|
-
|
18
|
-
return "#" + hex(rgb[1]) + hex(rgb[2]) + hex(rgb[3]);
|
19
|
-
}
|
20
|
-
|
21
|
-
$('.dynamic-color .col').each(function () {
|
22
|
-
$(this).children().each(function () {
|
23
|
-
var color = $(this).css('background-color'),
|
24
|
-
classes = $(this).attr('class');
|
25
|
-
$(this).html(rgb2hex(color) + " " + classes);
|
26
|
-
if (classes.indexOf("darken") >= 0 || $(this).hasClass('black')) {
|
27
|
-
$(this).css('color', 'rgba(255,255,255,.9');
|
28
|
-
}
|
29
|
-
});
|
30
|
-
});
|
31
|
-
|
32
|
-
// Floating-Fixed table of contents
|
33
|
-
setTimeout(function() {
|
34
|
-
var tocWrapperHeight = 260; // Max height of ads.
|
35
|
-
var tocHeight = $('.toc-wrapper .table-of-contents').length ? $('.toc-wrapper .table-of-contents').height() : 0;
|
36
|
-
var socialHeight = 95; // Height of unloaded social media in footer.
|
37
|
-
var footerOffset = $('body > footer').first().length ? $('body > footer').first().offset().top : 0;
|
38
|
-
var bottomOffset = footerOffset - socialHeight - tocHeight - tocWrapperHeight;
|
39
|
-
|
40
|
-
if ($('nav').length) {
|
41
|
-
$('.toc-wrapper').pushpin({
|
42
|
-
top: $('nav').height(),
|
43
|
-
bottom: bottomOffset
|
44
|
-
});
|
45
|
-
}
|
46
|
-
else if ($('#index-banner').length) {
|
47
|
-
$('.toc-wrapper').pushpin({
|
48
|
-
top: $('#index-banner').height(),
|
49
|
-
bottom: bottomOffset
|
50
|
-
});
|
51
|
-
}
|
52
|
-
else {
|
53
|
-
$('.toc-wrapper').pushpin({
|
54
|
-
top: 0,
|
55
|
-
bottom: bottomOffset
|
56
|
-
});
|
57
|
-
}
|
58
|
-
}, 100);
|
59
|
-
|
60
|
-
|
61
|
-
// BuySellAds Detection
|
62
|
-
var $bsa = $(".buysellads"),
|
63
|
-
$timesToCheck = 3;
|
64
|
-
function checkForChanges() {
|
65
|
-
if (!$bsa.find('#carbonads').length) {
|
66
|
-
$timesToCheck -= 1;
|
67
|
-
if ($timesToCheck >= 0) {
|
68
|
-
setTimeout(checkForChanges, 500);
|
69
|
-
}
|
70
|
-
else {
|
71
|
-
var donateAd = $('<div id="carbonads"><span><a class="carbon-text" href="#!" onclick="document.getElementById(\'paypal-donate\').submit();"><img src="images/donate.png" /> Help support us by turning off adblock. If you still prefer to keep adblock on for this page but still want to support us, feel free to donate. Any little bit helps.</a></form></span></div>');
|
72
|
-
|
73
|
-
$bsa.append(donateAd);
|
74
|
-
}
|
75
|
-
}
|
76
|
-
|
77
|
-
}
|
78
|
-
checkForChanges();
|
79
|
-
|
80
|
-
|
81
|
-
// BuySellAds Demos close button.
|
82
|
-
$('.buysellads.buysellads-demo .close').on('click', function() {
|
83
|
-
$(this).parent().remove();
|
84
|
-
});
|
85
|
-
|
86
|
-
|
87
|
-
// Github Latest Commit
|
88
|
-
if ($('.github-commit').length) { // Checks if widget div exists (Index only)
|
89
|
-
$.ajax({
|
90
|
-
url: "https://api.github.com/repos/dogfalo/materialize/commits/master",
|
91
|
-
dataType: "json",
|
92
|
-
success: function (data) {
|
93
|
-
var sha = data.sha,
|
94
|
-
date = jQuery.timeago(data.commit.author.date);
|
95
|
-
if (window_width < 1120) {
|
96
|
-
sha = sha.substring(0,7);
|
97
|
-
}
|
98
|
-
$('.github-commit').find('.date').html(date);
|
99
|
-
$('.github-commit').find('.sha').html(sha).attr('href', data.html_url);
|
100
|
-
}
|
101
|
-
});
|
102
|
-
}
|
103
|
-
|
104
|
-
// Toggle Flow Text
|
105
|
-
var toggleFlowTextButton = $('#flow-toggle');
|
106
|
-
toggleFlowTextButton.click( function(){
|
107
|
-
$('#flow-text-demo').children('p').each(function(){
|
108
|
-
$(this).toggleClass('flow-text');
|
109
|
-
});
|
110
|
-
});
|
111
|
-
|
112
|
-
// Toggle Containers on page
|
113
|
-
var toggleContainersButton = $('#container-toggle-button');
|
114
|
-
toggleContainersButton.click(function(){
|
115
|
-
$('body .browser-window .container, .had-container').each(function(){
|
116
|
-
$(this).toggleClass('had-container');
|
117
|
-
$(this).toggleClass('container');
|
118
|
-
if ($(this).hasClass('container')) {
|
119
|
-
toggleContainersButton.text("Turn off Containers");
|
120
|
-
}
|
121
|
-
else {
|
122
|
-
toggleContainersButton.text("Turn on Containers");
|
123
|
-
}
|
124
|
-
});
|
125
|
-
});
|
126
|
-
|
127
|
-
// Detect touch screen and enable scrollbar if necessary
|
128
|
-
function is_touch_device() {
|
129
|
-
try {
|
130
|
-
document.createEvent("TouchEvent");
|
131
|
-
return true;
|
132
|
-
} catch (e) {
|
133
|
-
return false;
|
134
|
-
}
|
135
|
-
}
|
136
|
-
if (is_touch_device()) {
|
137
|
-
$('#nav-mobile').css({ overflow: 'auto'});
|
138
|
-
}
|
139
|
-
|
140
|
-
// Set checkbox on forms.html to indeterminate
|
141
|
-
var indeterminateCheckbox = document.getElementById('indeterminate-checkbox');
|
142
|
-
if (indeterminateCheckbox !== null)
|
143
|
-
indeterminateCheckbox.indeterminate = true;
|
144
|
-
|
145
|
-
|
146
|
-
// Pushpin Demo Init
|
147
|
-
if ($('.pushpin-demo-nav').length) {
|
148
|
-
$('.pushpin-demo-nav').each(function() {
|
149
|
-
var $this = $(this);
|
150
|
-
var $target = $('#' + $(this).attr('data-target'));
|
151
|
-
$this.pushpin({
|
152
|
-
top: $target.offset().top,
|
153
|
-
bottom: $target.offset().top + $target.outerHeight() - $this.height()
|
154
|
-
});
|
155
|
-
});
|
156
|
-
}
|
157
|
-
|
158
|
-
// CSS Transitions Demo Init
|
159
|
-
if ($('#scale-demo').length &&
|
160
|
-
$('#scale-demo-trigger').length) {
|
161
|
-
$('#scale-demo-trigger').click(function() {
|
162
|
-
$('#scale-demo').toggleClass('scale-out');
|
163
|
-
});
|
164
|
-
}
|
165
|
-
|
166
|
-
// Swipeable Tabs Demo Init
|
167
|
-
if ($('#tabs-swipe-demo').length) {
|
168
|
-
$('#tabs-swipe-demo').tabs({ 'swipeable': true });
|
169
|
-
}
|
170
|
-
|
171
|
-
// Plugin initialization
|
172
|
-
$('.carousel.carousel-slider').carousel({fullWidth: true});
|
173
|
-
$('.carousel').carousel();
|
174
|
-
$('.slider').slider({full_width: true});
|
175
|
-
$('.parallax').parallax();
|
176
|
-
$('.modal').modal();
|
177
|
-
$('.scrollspy').scrollSpy();
|
178
|
-
$('.button-collapse').sideNav({'edge': 'left'});
|
179
|
-
$('.datepicker').pickadate({selectYears: 20});
|
180
|
-
$('select').not('.disabled').material_select();
|
181
|
-
$('input.autocomplete').autocomplete({
|
182
|
-
data: {"Apple": null, "Microsoft": null, "Google": 'http://placehold.it/250x250'}
|
183
|
-
});
|
184
|
-
|
185
|
-
// Chips
|
186
|
-
$('.chips').material_chip();
|
187
|
-
$('.chips-initial').material_chip({
|
188
|
-
readOnly: true,
|
189
|
-
data: [{
|
190
|
-
tag: 'Apple',
|
191
|
-
}, {
|
192
|
-
tag: 'Microsoft',
|
193
|
-
}, {
|
194
|
-
tag: 'Google',
|
195
|
-
}]
|
196
|
-
});
|
197
|
-
$('.chips-placeholder').material_chip({
|
198
|
-
placeholder: 'Enter a tag',
|
199
|
-
secondaryPlaceholder: '+Tag',
|
200
|
-
});
|
201
|
-
$('.chips-autocomplete').material_chip({
|
202
|
-
autocompleteData: {
|
203
|
-
'Apple': null,
|
204
|
-
'Microsoft': null,
|
205
|
-
'Google': null
|
206
|
-
}
|
207
|
-
});
|
208
|
-
|
209
|
-
|
210
|
-
}); // end of document ready
|
211
|
-
})(jQuery); // end of jQuery name space
|
@@ -1,205 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
|
3
|
-
*
|
4
|
-
* Uses the built in easing capabilities added In jQuery 1.1
|
5
|
-
* to offer multiple easing options
|
6
|
-
*
|
7
|
-
* TERMS OF USE - jQuery Easing
|
8
|
-
*
|
9
|
-
* Open source under the BSD License.
|
10
|
-
*
|
11
|
-
* Copyright © 2008 George McGinley Smith
|
12
|
-
* All rights reserved.
|
13
|
-
*
|
14
|
-
* Redistribution and use in source and binary forms, with or without modification,
|
15
|
-
* are permitted provided that the following conditions are met:
|
16
|
-
*
|
17
|
-
* Redistributions of source code must retain the above copyright notice, this list of
|
18
|
-
* conditions and the following disclaimer.
|
19
|
-
* Redistributions in binary form must reproduce the above copyright notice, this list
|
20
|
-
* of conditions and the following disclaimer in the documentation and/or other materials
|
21
|
-
* provided with the distribution.
|
22
|
-
*
|
23
|
-
* Neither the name of the author nor the names of contributors may be used to endorse
|
24
|
-
* or promote products derived from this software without specific prior written permission.
|
25
|
-
*
|
26
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
27
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
28
|
-
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
29
|
-
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
30
|
-
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
31
|
-
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
32
|
-
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
33
|
-
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
34
|
-
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
35
|
-
*
|
36
|
-
*/
|
37
|
-
|
38
|
-
// t: current time, b: begInnIng value, c: change In value, d: duration
|
39
|
-
jQuery.easing['jswing'] = jQuery.easing['swing'];
|
40
|
-
|
41
|
-
jQuery.extend( jQuery.easing,
|
42
|
-
{
|
43
|
-
def: 'easeOutQuad',
|
44
|
-
swing: function (x, t, b, c, d) {
|
45
|
-
//alert(jQuery.easing.default);
|
46
|
-
return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
|
47
|
-
},
|
48
|
-
easeInQuad: function (x, t, b, c, d) {
|
49
|
-
return c*(t/=d)*t + b;
|
50
|
-
},
|
51
|
-
easeOutQuad: function (x, t, b, c, d) {
|
52
|
-
return -c *(t/=d)*(t-2) + b;
|
53
|
-
},
|
54
|
-
easeInOutQuad: function (x, t, b, c, d) {
|
55
|
-
if ((t/=d/2) < 1) return c/2*t*t + b;
|
56
|
-
return -c/2 * ((--t)*(t-2) - 1) + b;
|
57
|
-
},
|
58
|
-
easeInCubic: function (x, t, b, c, d) {
|
59
|
-
return c*(t/=d)*t*t + b;
|
60
|
-
},
|
61
|
-
easeOutCubic: function (x, t, b, c, d) {
|
62
|
-
return c*((t=t/d-1)*t*t + 1) + b;
|
63
|
-
},
|
64
|
-
easeInOutCubic: function (x, t, b, c, d) {
|
65
|
-
if ((t/=d/2) < 1) return c/2*t*t*t + b;
|
66
|
-
return c/2*((t-=2)*t*t + 2) + b;
|
67
|
-
},
|
68
|
-
easeInQuart: function (x, t, b, c, d) {
|
69
|
-
return c*(t/=d)*t*t*t + b;
|
70
|
-
},
|
71
|
-
easeOutQuart: function (x, t, b, c, d) {
|
72
|
-
return -c * ((t=t/d-1)*t*t*t - 1) + b;
|
73
|
-
},
|
74
|
-
easeInOutQuart: function (x, t, b, c, d) {
|
75
|
-
if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
|
76
|
-
return -c/2 * ((t-=2)*t*t*t - 2) + b;
|
77
|
-
},
|
78
|
-
easeInQuint: function (x, t, b, c, d) {
|
79
|
-
return c*(t/=d)*t*t*t*t + b;
|
80
|
-
},
|
81
|
-
easeOutQuint: function (x, t, b, c, d) {
|
82
|
-
return c*((t=t/d-1)*t*t*t*t + 1) + b;
|
83
|
-
},
|
84
|
-
easeInOutQuint: function (x, t, b, c, d) {
|
85
|
-
if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
|
86
|
-
return c/2*((t-=2)*t*t*t*t + 2) + b;
|
87
|
-
},
|
88
|
-
easeInSine: function (x, t, b, c, d) {
|
89
|
-
return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
|
90
|
-
},
|
91
|
-
easeOutSine: function (x, t, b, c, d) {
|
92
|
-
return c * Math.sin(t/d * (Math.PI/2)) + b;
|
93
|
-
},
|
94
|
-
easeInOutSine: function (x, t, b, c, d) {
|
95
|
-
return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
|
96
|
-
},
|
97
|
-
easeInExpo: function (x, t, b, c, d) {
|
98
|
-
return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
|
99
|
-
},
|
100
|
-
easeOutExpo: function (x, t, b, c, d) {
|
101
|
-
return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
|
102
|
-
},
|
103
|
-
easeInOutExpo: function (x, t, b, c, d) {
|
104
|
-
if (t==0) return b;
|
105
|
-
if (t==d) return b+c;
|
106
|
-
if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
|
107
|
-
return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
|
108
|
-
},
|
109
|
-
easeInCirc: function (x, t, b, c, d) {
|
110
|
-
return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
|
111
|
-
},
|
112
|
-
easeOutCirc: function (x, t, b, c, d) {
|
113
|
-
return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
|
114
|
-
},
|
115
|
-
easeInOutCirc: function (x, t, b, c, d) {
|
116
|
-
if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
|
117
|
-
return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
|
118
|
-
},
|
119
|
-
easeInElastic: function (x, t, b, c, d) {
|
120
|
-
var s=1.70158;var p=0;var a=c;
|
121
|
-
if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
|
122
|
-
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
123
|
-
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
124
|
-
return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
|
125
|
-
},
|
126
|
-
easeOutElastic: function (x, t, b, c, d) {
|
127
|
-
var s=1.70158;var p=0;var a=c;
|
128
|
-
if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
|
129
|
-
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
130
|
-
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
131
|
-
return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
|
132
|
-
},
|
133
|
-
easeInOutElastic: function (x, t, b, c, d) {
|
134
|
-
var s=1.70158;var p=0;var a=c;
|
135
|
-
if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5);
|
136
|
-
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
137
|
-
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
138
|
-
if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
|
139
|
-
return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
|
140
|
-
},
|
141
|
-
easeInBack: function (x, t, b, c, d, s) {
|
142
|
-
if (s == undefined) s = 1.70158;
|
143
|
-
return c*(t/=d)*t*((s+1)*t - s) + b;
|
144
|
-
},
|
145
|
-
easeOutBack: function (x, t, b, c, d, s) {
|
146
|
-
if (s == undefined) s = 1.70158;
|
147
|
-
return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
|
148
|
-
},
|
149
|
-
easeInOutBack: function (x, t, b, c, d, s) {
|
150
|
-
if (s == undefined) s = 1.70158;
|
151
|
-
if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
|
152
|
-
return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
|
153
|
-
},
|
154
|
-
easeInBounce: function (x, t, b, c, d) {
|
155
|
-
return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
|
156
|
-
},
|
157
|
-
easeOutBounce: function (x, t, b, c, d) {
|
158
|
-
if ((t/=d) < (1/2.75)) {
|
159
|
-
return c*(7.5625*t*t) + b;
|
160
|
-
} else if (t < (2/2.75)) {
|
161
|
-
return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
|
162
|
-
} else if (t < (2.5/2.75)) {
|
163
|
-
return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
|
164
|
-
} else {
|
165
|
-
return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
|
166
|
-
}
|
167
|
-
},
|
168
|
-
easeInOutBounce: function (x, t, b, c, d) {
|
169
|
-
if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
|
170
|
-
return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
|
171
|
-
}
|
172
|
-
});
|
173
|
-
|
174
|
-
/*
|
175
|
-
*
|
176
|
-
* TERMS OF USE - EASING EQUATIONS
|
177
|
-
*
|
178
|
-
* Open source under the BSD License.
|
179
|
-
*
|
180
|
-
* Copyright © 2001 Robert Penner
|
181
|
-
* All rights reserved.
|
182
|
-
*
|
183
|
-
* Redistribution and use in source and binary forms, with or without modification,
|
184
|
-
* are permitted provided that the following conditions are met:
|
185
|
-
*
|
186
|
-
* Redistributions of source code must retain the above copyright notice, this list of
|
187
|
-
* conditions and the following disclaimer.
|
188
|
-
* Redistributions in binary form must reproduce the above copyright notice, this list
|
189
|
-
* of conditions and the following disclaimer in the documentation and/or other materials
|
190
|
-
* provided with the distribution.
|
191
|
-
*
|
192
|
-
* Neither the name of the author nor the names of contributors may be used to endorse
|
193
|
-
* or promote products derived from this software without specific prior written permission.
|
194
|
-
*
|
195
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
196
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
197
|
-
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
198
|
-
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
199
|
-
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
200
|
-
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
201
|
-
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
202
|
-
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
203
|
-
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
204
|
-
*
|
205
|
-
*/
|
@@ -1 +0,0 @@
|
|
1
|
-
!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t){function e(){var e=a(this),o=r.settings;return isNaN(e.datetime)||(0==o.cutoff||Math.abs(n(e.datetime))<o.cutoff)&&t(this).text(i(e.datetime)),this}function a(e){if(e=t(e),!e.data("timeago")){e.data("timeago",{datetime:r.datetime(e)});var a=t.trim(e.text());r.settings.localeTitle?e.attr("title",e.data("timeago").datetime.toLocaleString()):!(a.length>0)||r.isTime(e)&&e.attr("title")||e.attr("title",a)}return e.data("timeago")}function i(t){return r.inWords(n(t))}function n(t){return(new Date).getTime()-t.getTime()}t.timeago=function(e){return i(e instanceof Date?e:"string"==typeof e?t.timeago.parse(e):"number"==typeof e?new Date(e):t.timeago.datetime(e))};var r=t.timeago;t.extend(t.timeago,{settings:{refreshMillis:6e4,allowPast:!0,allowFuture:!1,localeTitle:!1,cutoff:0,strings:{prefixAgo:null,prefixFromNow:null,suffixAgo:"ago",suffixFromNow:"from now",inPast:"any moment now",seconds:"less than a minute",minute:"about a minute",minutes:"%d minutes",hour:"about an hour",hours:"about %d hours",day:"a day",days:"%d days",month:"about a month",months:"%d months",year:"about a year",years:"%d years",wordSeparator:" ",numbers:[]}},inWords:function(e){function a(a,n){var r=t.isFunction(a)?a(n,e):a,o=i.numbers&&i.numbers[n]||n;return r.replace(/%d/i,o)}if(!this.settings.allowPast&&!this.settings.allowFuture)throw"timeago allowPast and allowFuture settings can not both be set to false.";var i=this.settings.strings,n=i.prefixAgo,r=i.suffixAgo;if(this.settings.allowFuture&&0>e&&(n=i.prefixFromNow,r=i.suffixFromNow),!this.settings.allowPast&&e>=0)return this.settings.strings.inPast;var o=Math.abs(e)/1e3,s=o/60,u=s/60,m=u/24,l=m/365,d=45>o&&a(i.seconds,Math.round(o))||90>o&&a(i.minute,1)||45>s&&a(i.minutes,Math.round(s))||90>s&&a(i.hour,1)||24>u&&a(i.hours,Math.round(u))||42>u&&a(i.day,1)||30>m&&a(i.days,Math.round(m))||45>m&&a(i.month,1)||365>m&&a(i.months,Math.round(m/30))||1.5>l&&a(i.year,1)||a(i.years,Math.round(l)),f=i.wordSeparator||"";return void 0===i.wordSeparator&&(f=" "),t.trim([n,d,r].join(f))},parse:function(e){var a=t.trim(e);return a=a.replace(/\.\d+/,""),a=a.replace(/-/,"/").replace(/-/,"/"),a=a.replace(/T/," ").replace(/Z/," UTC"),a=a.replace(/([\+\-]\d\d)\:?(\d\d)/," $1$2"),a=a.replace(/([\+\-]\d\d)$/," $100"),new Date(a)},datetime:function(e){var a=t(e).attr(r.isTime(e)?"datetime":"title");return r.parse(a)},isTime:function(e){return"time"===t(e).get(0).tagName.toLowerCase()}});var o={init:function(){var a=t.proxy(e,this);a();var i=r.settings;i.refreshMillis>0&&(this._timeagoInterval=setInterval(a,i.refreshMillis))},update:function(a){var i=r.parse(a);t(this).data("timeago",{datetime:i}),r.settings.localeTitle&&t(this).attr("title",i.toLocaleString()),e.apply(this)},updateFromDOM:function(){t(this).data("timeago",{datetime:r.parse(t(this).attr(r.isTime(this)?"datetime":"title"))}),e.apply(this)},dispose:function(){this._timeagoInterval&&(window.clearInterval(this._timeagoInterval),this._timeagoInterval=null)}};t.fn.timeago=function(t,e){var a=t?o[t]:o.init;if(!a)throw new Error("Unknown function name '"+t+"' for timeago");return this.each(function(){a.call(this,e)}),this},document.createElement("abbr"),document.createElement("time")});
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/* http://prismjs.com/download.html?themes=prism&languages=markup+css+clike+javascript+scss+bash */
|
2
|
-
self="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{};var Prism=function(){var e=/\blang(?:uage)?-(?!\*)(\w+)\b/i,t=self.Prism={util:{encode:function(e){return e instanceof n?new n(e.type,t.util.encode(e.content),e.alias):"Array"===t.util.type(e)?e.map(t.util.encode):e.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).match(/\[object (\w+)\]/)[1]},clone:function(e){var n=t.util.type(e);switch(n){case"Object":var a={};for(var r in e)e.hasOwnProperty(r)&&(a[r]=t.util.clone(e[r]));return a;case"Array":return e.slice()}return e}},languages:{extend:function(e,n){var a=t.util.clone(t.languages[e]);for(var r in n)a[r]=n[r];return a},insertBefore:function(e,n,a,r){r=r||t.languages;var i=r[e];if(2==arguments.length){a=arguments[1];for(var l in a)a.hasOwnProperty(l)&&(i[l]=a[l]);return i}var s={};for(var o in i)if(i.hasOwnProperty(o)){if(o==n)for(var l in a)a.hasOwnProperty(l)&&(s[l]=a[l]);s[o]=i[o]}return t.languages.DFS(t.languages,function(t,n){n===r[e]&&t!=e&&(this[t]=s)}),r[e]=s},DFS:function(e,n,a){for(var r in e)e.hasOwnProperty(r)&&(n.call(e,r,e[r],a||r),"Object"===t.util.type(e[r])?t.languages.DFS(e[r],n):"Array"===t.util.type(e[r])&&t.languages.DFS(e[r],n,r))}},highlightAll:function(e,n){for(var a,r=document.querySelectorAll('code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'),i=0;a=r[i++];)t.highlightElement(a,e===!0,n)},highlightElement:function(a,r,i){for(var l,s,o=a;o&&!e.test(o.className);)o=o.parentNode;if(o&&(l=(o.className.match(e)||[,""])[1],s=t.languages[l]),s){a.className=a.className.replace(e,"").replace(/\s+/g," ")+" language-"+l,o=a.parentNode,/pre/i.test(o.nodeName)&&(o.className=o.className.replace(e,"").replace(/\s+/g," ")+" language-"+l);var g=a.textContent;if(g){var u={element:a,language:l,grammar:s,code:g};if(t.hooks.run("before-highlight",u),r&&self.Worker){var c=new Worker(t.filename);c.onmessage=function(e){u.highlightedCode=n.stringify(JSON.parse(e.data),l),t.hooks.run("before-insert",u),u.element.innerHTML=u.highlightedCode,i&&i.call(u.element),t.hooks.run("after-highlight",u)},c.postMessage(JSON.stringify({language:u.language,code:u.code}))}else u.highlightedCode=t.highlight(u.code,u.grammar,u.language),t.hooks.run("before-insert",u),u.element.innerHTML=u.highlightedCode,i&&i.call(a),t.hooks.run("after-highlight",u)}}},highlight:function(e,a,r){var i=t.tokenize(e,a);return n.stringify(t.util.encode(i),r)},tokenize:function(e,n){var a=t.Token,r=[e],i=n.rest;if(i){for(var l in i)n[l]=i[l];delete n.rest}e:for(var l in n)if(n.hasOwnProperty(l)&&n[l]){var s=n[l];s="Array"===t.util.type(s)?s:[s];for(var o=0;o<s.length;++o){var g=s[o],u=g.inside,c=!!g.lookbehind,f=0,h=g.alias;g=g.pattern||g;for(var p=0;p<r.length;p++){var d=r[p];if(r.length>e.length)break e;if(!(d instanceof a)){g.lastIndex=0;var m=g.exec(d);if(m){c&&(f=m[1].length);var y=m.index-1+f,m=m[0].slice(f),v=m.length,k=y+v,b=d.slice(0,y+1),w=d.slice(k+1),O=[p,1];b&&O.push(b);var N=new a(l,u?t.tokenize(m,u):m,h);O.push(N),w&&O.push(w),Array.prototype.splice.apply(r,O)}}}}}return r},hooks:{all:{},add:function(e,n){var a=t.hooks.all;a[e]=a[e]||[],a[e].push(n)},run:function(e,n){var a=t.hooks.all[e];if(a&&a.length)for(var r,i=0;r=a[i++];)r(n)}}},n=t.Token=function(e,t,n){this.type=e,this.content=t,this.alias=n};if(n.stringify=function(e,a,r){if("string"==typeof e)return e;if("[object Array]"==Object.prototype.toString.call(e))return e.map(function(t){return n.stringify(t,a,e)}).join("");var i={type:e.type,content:n.stringify(e.content,a,r),tag:"span",classes:["token",e.type],attributes:{},language:a,parent:r};if("comment"==i.type&&(i.attributes.spellcheck="true"),e.alias){var l="Array"===t.util.type(e.alias)?e.alias:[e.alias];Array.prototype.push.apply(i.classes,l)}t.hooks.run("wrap",i);var s="";for(var o in i.attributes)s+=o+'="'+(i.attributes[o]||"")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'" '+s+">"+i.content+"</"+i.tag+">"},!self.document)return self.addEventListener?(self.addEventListener("message",function(e){var n=JSON.parse(e.data),a=n.language,r=n.code;self.postMessage(JSON.stringify(t.util.encode(t.tokenize(r,t.languages[a])))),self.close()},!1),self.Prism):self.Prism;var a=document.getElementsByTagName("script");return a=a[a.length-1],a&&(t.filename=a.src,document.addEventListener&&!a.hasAttribute("data-manual")&&document.addEventListener("DOMContentLoaded",t.highlightAll)),self.Prism}();"undefined"!=typeof module&&module.exports&&(module.exports=Prism);;
|
3
|
-
Prism.languages.markup={comment:/<!--[\w\W]*?-->/g,prolog:/<\?.+?\?>/,doctype:/<!DOCTYPE.+?>/,cdata:/<!\[CDATA\[[\w\W]*?]]>/i,tag:{pattern:/<\/?[\w:-]+\s*(?:\s+[\w:-]+(?:=(?:("|')(\\?[\w\W])*?\1|[^\s'">=]+))?\s*)*\/?>/gi,inside:{tag:{pattern:/^<\/?[\w:-]+/i,inside:{punctuation:/^<\/?/,namespace:/^[\w-]+?:/}},"attr-value":{pattern:/=(?:('|")[\w\W]*?(\1)|[^\s>]+)/gi,inside:{punctuation:/=|>|"/g}},punctuation:/\/?>/g,"attr-name":{pattern:/[\w:-]+/g,inside:{namespace:/^[\w-]+?:/}}}},entity:/\&#?[\da-z]{1,8};/gi},Prism.hooks.add("wrap",function(t){"entity"===t.type&&(t.attributes.title=t.content.replace(/&/,"&"))});;
|
4
|
-
Prism.languages.css={comment:/\/\*[\w\W]*?\*\//g,atrule:{pattern:/@[\w-]+?.*?(;|(?=\s*{))/gi,inside:{punctuation:/[;:]/g}},url:/url\((["']?).*?\1\)/gi,selector:/[^\{\}\s][^\{\};]*(?=\s*\{)/g,property:/(\b|\B)[\w-]+(?=\s*:)/gi,string:/("|')(\\?.)*?\1/g,important:/\B!important\b/gi,punctuation:/[\{\};:]/g,"function":/[-a-z0-9]+(?=\()/gi},Prism.languages.markup&&(Prism.languages.insertBefore("markup","tag",{style:{pattern:/<style[\w\W]*?>[\w\W]*?<\/style>/gi,inside:{tag:{pattern:/<style[\w\W]*?>|<\/style>/gi,inside:Prism.languages.markup.tag.inside},rest:Prism.languages.css},alias:"language-css"}}),Prism.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|').+?\1/gi,inside:{"attr-name":{pattern:/^\s*style/gi,inside:Prism.languages.markup.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/gi,inside:Prism.languages.css}},alias:"language-css"}},Prism.languages.markup.tag));;
|
5
|
-
Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\w\W]*?\*\//g,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*?(\r?\n|$)/g,lookbehind:!0}],string:/("|')(\\?.)*?\1/g,"class-name":{pattern:/((?:(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[a-z0-9_\.\\]+/gi,lookbehind:!0,inside:{punctuation:/(\.|\\)/}},keyword:/\b(if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/g,"boolean":/\b(true|false)\b/g,"function":{pattern:/[a-z0-9_]+\(/gi,inside:{punctuation:/\(/}},number:/\b-?(0x[\dA-Fa-f]+|\d*\.?\d+([Ee]-?\d+)?)\b/g,operator:/[-+]{1,2}|!|<=?|>=?|={1,3}|&{1,2}|\|?\||\?|\*|\/|\~|\^|\%/g,ignore:/&(lt|gt|amp);/gi,punctuation:/[{}[\];(),.:]/g};;
|
6
|
-
Prism.languages.javascript=Prism.languages.extend("clike",{keyword:/\b(break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|false|finally|for|function|get|if|implements|import|in|instanceof|interface|let|new|null|package|private|protected|public|return|set|static|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/g,number:/\b-?(0x[\dA-Fa-f]+|\d*\.?\d+([Ee][+-]?\d+)?|NaN|-?Infinity)\b/g,"function":/(?!\d)[a-z0-9_$]+(?=\()/gi}),Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:/(^|[^/])\/(?!\/)(\[.+?]|\\.|[^/\r\n])+\/[gim]{0,3}(?=\s*($|[\r\n,.;})]))/g,lookbehind:!0}}),Prism.languages.markup&&Prism.languages.insertBefore("markup","tag",{script:{pattern:/<script[\w\W]*?>[\w\W]*?<\/script>/gi,inside:{tag:{pattern:/<script[\w\W]*?>|<\/script>/gi,inside:Prism.languages.markup.tag.inside},rest:Prism.languages.javascript},alias:"language-javascript"}});;
|
7
|
-
Prism.languages.scss=Prism.languages.extend("css",{comment:{pattern:/(^|[^\\])(\/\*[\w\W]*?\*\/|\/\/.*?(\r?\n|$))/g,lookbehind:!0},atrule:/@[\w-]+(?=\s+(\(|\{|;))/gi,url:/([-a-z]+-)*url(?=\()/gi,selector:/([^@;\{\}\(\)]?([^@;\{\}\(\)]|&|\#\{\$[-_\w]+\})+)(?=\s*\{(\}|\s|[^\}]+(:|\{)[^\}]+))/gm}),Prism.languages.insertBefore("scss","atrule",{keyword:/@(if|else if|else|for|each|while|import|extend|debug|warn|mixin|include|function|return|content)|(?=@for\s+\$[-_\w]+\s)+from/i}),Prism.languages.insertBefore("scss","property",{variable:/((\$[-_\w]+)|(#\{\$[-_\w]+\}))/i}),Prism.languages.insertBefore("scss","ignore",{placeholder:/%[-_\w]+/i,statement:/\B!(default|optional)\b/gi,"boolean":/\b(true|false)\b/g,"null":/\b(null)\b/g,operator:/\s+([-+]{1,2}|={1,2}|!=|\|?\||\?|\*|\/|\%)\s+/g});;
|
8
|
-
Prism.languages.bash=Prism.languages.extend("clike",{comment:{pattern:/(^|[^"{\\])(#.*?(\r?\n|$))/g,lookbehind:!0},string:{pattern:/("|')(\\?[\s\S])*?\1/g,inside:{property:/\$([a-zA-Z0-9_#\?\-\*!@]+|\{[^\}]+\})/g}},keyword:/\b(if|then|else|elif|fi|for|break|continue|while|in|case|function|select|do|done|until|echo|exit|return|set|declare)\b/g}),Prism.languages.insertBefore("bash","keyword",{property:/\$([a-zA-Z0-9_#\?\-\*!@]+|\{[^}]+\})/g}),Prism.languages.insertBefore("bash","comment",{important:/(^#!\s*\/bin\/bash)|(^#!\s*\/bin\/sh)/g});;
|