forked from olton/metroui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocs.js
More file actions
67 lines (55 loc) · 2.42 KB
/
docs.js
File metadata and controls
67 lines (55 loc) · 2.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
var metro_colors = [
'black', 'white', 'lime', 'green', 'emerald', 'teal', 'blue', 'cyan', 'cobalt', 'indigo', 'violet',
'pink', 'magenta', 'crimson', 'red', 'orange', 'amber', 'yellow', 'brown', 'olive',
'steel', 'mauve', 'taupe', 'gray', 'dark', 'darker', 'darkBrown', 'darkCrimson',
'darkMagenta', 'darkIndigo', 'darkCyan', 'darkCobalt', 'darkTeal', 'darkEmerald',
'darkGreen', 'darkOrange', 'darkRed', 'darkPink', 'darkViolet', 'darkBlue',
'lightBlue', 'lightRed', 'lightGreen', 'lighterBlue', 'lightTeal', 'lightOlive',
'lightOrange', 'lightPink', 'grayDark', 'grayDarker', 'grayLight', 'grayLighter'
];
var adBlock = false;
function init(){
"use strict";
$("<div/>").load("header.html").insertBefore($(".page-content"));
$("<div/>").load("footer.html", function(){
if (window.location.hostname == 'localhost') {
$("div[data-text='sponsor']").remove();
}
}).insertAfter($(".page-content"));
}
$(function(){
"use strict";
$("h1 .nav-button").addClass('transform');
//setInterval(function(){
// $("h1 .nav-button").toggleClass('transform');
//}, 2000);
//
//setInterval(function(){
// $("#job").toggleClass('block-shadow-danger');
//}, 1000);
});
if (window.location.hostname !== 'localhost') {
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-58849249-3', 'auto');
ga('send', 'pageview');
}
if (window.location.hostname !== 'localhost') {
$(function () {
var gb = $('.adsbygoogle');
$.each(gb, function () {
var block = $(this);
if (block.css('display') == 'none' || block.css('height') == 0) {
adBlock = true;
}
});
if (gb.length == 0 || adBlock) {
var b = $("<div/>").addClass('padding10 bg-red fg-white text-accent');
b.html('Advertising on the website of the project allows the project to evolve. Support the project, please disable ad blocker.');
var target = window.location.pathname == '/' ? $('.metro-title') : $('.page-content > h1:nth-child(1)');
b.insertAfter(target);
}
});
}