Skip to content

Commit 49863c2

Browse files
Include basic assets
1 parent 031d83c commit 49863c2

File tree

3 files changed

+67
-1
lines changed

3 files changed

+67
-1
lines changed

static/assets/css/styles.css

Whitespace-only changes.

static/assets/js/main.js

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
var UrlAll = null;
2+
3+
var Main = {};
4+
5+
Main = {
6+
init: function(){
7+
// Avoid `console` errors in browsers that lack a console.
8+
(function() {
9+
var method;
10+
var noop = function () {};
11+
var methods = [
12+
'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error',
13+
'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log',
14+
'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd',
15+
'timeStamp', 'trace', 'warn'
16+
];
17+
18+
var length = methods.length;
19+
var console = (window.console = window.console || {});
20+
21+
while (length--) {
22+
method = methods[length];
23+
24+
// Only stub undefined methods.
25+
if (!console[method]) {
26+
console[method] = noop;
27+
}
28+
}
29+
}());
30+
31+
$.easing['jswing'] = $.easing['swing'];
32+
33+
$.extend($.easing, {
34+
def: 'easeOutQuad',
35+
easeInOutExpo: function (x, t, b, c, d) {
36+
if (t==0) return b;
37+
if (t==d) return b+c;
38+
if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
39+
return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
40+
}
41+
});
42+
43+
$('*[data-autoscroll]').click(function(){
44+
var target = $(this.hash);
45+
46+
target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
47+
48+
if (target.length) {
49+
$('html,body').animate({ scrollTop: target.offset().top }, 1500, 'easeInOutExpo');
50+
return false;
51+
}
52+
});
53+
}
54+
}
55+
56+
$(document).ready(function() {
57+
Main.init();
58+
});

static/index.html

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="pt">
2+
<html lang="pt" class="no-js">
33
<head>
44
<meta charset="utf-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
@@ -13,9 +13,17 @@
1313
<link type="text/plain" rel="author" href="humans.txt" />
1414

1515
<link href="assets/images/favicon.png" rel="shortcut icon">
16+
17+
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet">
18+
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
19+
<link href="assets/styles.css" rel="stylesheet">
1620
</head>
1721

1822
<body>
1923
<h1>Hello World!</h1>
24+
25+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
26+
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
27+
<script src="assets/js/main.js"></script>
2028
</body>
2129
</html>

0 commit comments

Comments
 (0)