Skip to content

Commit 12d9d89

Browse files
committed
🔧 Fix assets
1 parent 59147e9 commit 12d9d89

File tree

9 files changed

+141
-38
lines changed

9 files changed

+141
-38
lines changed

_includes/head.html

+1-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1">
77

88
<link rel="apple-touch-icon" href="apple-touch-icon.png">
9-
<link rel="shortcut icon" type="image/x-icon" href="/static/app/images/favicon.ico">
9+
<link rel="shortcut icon" type="image/x-icon" href="/assets/images/favicon.ico">
1010

1111
<link rel="stylesheet" type="text/css" href="/assets/css/vendor/magnific-popup.css">
1212

@@ -17,8 +17,5 @@
1717
<link href="/assets/css/vendor/prism.css" rel="stylesheet" />
1818
<link href="/assets/css/vendor/component.css" rel="stylesheet" />
1919

20-
21-
<script type="text/javascript" src="/static/CACHE/js/f9e2d28850d2.js"></script>
22-
2320
<!-- Version 2.19.1 -->
2421
</head>

_includes/scripts.html

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script>
22
<script>window.jQuery || document.write('<script src="/assets/js/jquery-3.1.1.min.js"><\/script>')</script>
3-
<script type="text/javascript" src="/assets/js/3b449f79c9cd.js"></script>
43

54
<script src="/assets/js/jquery.dlmenu.js"></script>
5+
<script type="text/javascript" src="/assets/js/modernizr-2.8.3.min.js"></script>
6+
<script type="text/javascript" src="/assets/js/bootstrap.min.js"></script>
67
<script>
78
$(document).ready(function () {
89

@@ -22,3 +23,5 @@
2223
});
2324
</script>
2425
<script src="/assets/js/prism.js" data-default-language="markup"></script>
26+
<script type="text/javascript" src="/assets/js/app.js"></script>
27+

assets/css/app.min.css

-15
This file was deleted.
75.4 KB
Binary file not shown.

assets/images/favicon.ico

610 Bytes
Binary file not shown.

assets/js/3b449f79c9cd.js

-18
This file was deleted.

assets/js/app.js

+125
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
var RESTLET = window.RESTLET || {};
2+
var RESTLET = (function ($) {
3+
return {
4+
base : {
5+
//initialize base object @function init
6+
init : function () {
7+
8+
},
9+
}
10+
}
11+
})(jQuery);
12+
13+
$(document).ready(function () {
14+
RESTLET.base.init();
15+
});
16+
17+
/***************************
18+
event handlers
19+
****************************/
20+
21+
$(function () {
22+
23+
// Mobi nav trigger
24+
$('#j-navigation-trigger').on('click', function () {
25+
$(this).toggleClass('collapse');
26+
});
27+
28+
function mobiNav() {
29+
if ($(window).width() <= 992) {
30+
$('.navigation__link').on('click', function (e) {
31+
if ($(this).siblings().length) {
32+
$(this).siblings().toggle();
33+
e.preventDefault();
34+
}
35+
});
36+
}
37+
}
38+
39+
mobiNav();
40+
41+
// Window resize events
42+
$(window).on('resize', function () {
43+
$('#j-navigation-trigger').removeClass('collapse');
44+
45+
if ($(window).width() <= 992) {
46+
mobiNav();
47+
}
48+
});
49+
50+
// SVG Generator
51+
if($('img.svg').length){
52+
$('img.svg').each(function(){
53+
var $img = jQuery(this);
54+
var imgID = $img.attr('id');
55+
var imgClass = $img.attr('class');
56+
var imgURL = $img.attr('src');
57+
58+
$.get(imgURL, function(data) {
59+
// Get the SVG tag, ignore the rest
60+
var $svg = $(data).find('svg');
61+
62+
// Add replaced image's classes to the new SVG
63+
if(typeof imgClass !== 'undefined') {
64+
$svg = $svg.attr('class', imgClass+' replaced-svg');
65+
}
66+
67+
// Remove any invalid XML tags as per http://validator.w3.org
68+
$svg = $svg.removeAttr('xmlns:a');
69+
70+
// Replace image with new SVG
71+
$img.replaceWith($svg);
72+
73+
}, 'xml');
74+
75+
});
76+
}
77+
78+
// Documentation sidebar submenu click handler
79+
//when a group is shown, save it as the active accordion group
80+
if ($('.documentation-sidebar #accordion').length) {
81+
$('a[class="active"]').closest('ul').parents('ul').addClass('in');
82+
$('a[class="active"]').closest('ul').addClass('in');
83+
}
84+
85+
// Documentation sidebar affix
86+
if ($('.documentation-sidebar').length) {
87+
$('.documentation-sidebar').affix({
88+
offset: {
89+
top: 70,
90+
bottom: function () {
91+
return (this.bottom = $('footer').outerHeight(true) + 50)
92+
}
93+
}
94+
});
95+
}
96+
97+
if ($('.documentation-wrapper .inner-nav').length) {
98+
$('.documentation-wrapper .inner-nav').affix({
99+
offset: {
100+
top: 155,
101+
bottom: function () {
102+
return (this.bottom = $('footer').outerHeight(true) + 100)
103+
}
104+
}
105+
});
106+
}
107+
108+
// Fix affix scrolling when .documentation-content is shorter than .inner-nav
109+
if ( $('.documentation-content').outerHeight() < $('.inner-nav').outerHeight() ) {
110+
$('.documentation-content').css('height', '2610');
111+
}
112+
113+
// Anchor link scroll to section
114+
if (window.location.hash) {
115+
var target = $(window.location.hash);
116+
117+
if (target.length) {
118+
$('html, body').animate({
119+
scrollTop: target.offset().top - 190
120+
}, 1000);
121+
return false;
122+
}
123+
}
124+
125+
});

assets/js/bootstrap.min.js

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/modernizr-2.8.3.min.js

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)