Skip to content

Commit be592a4

Browse files
Create gh-pages branch via GitHub
1 parent 36c2811 commit be592a4

File tree

8 files changed

+563
-406
lines changed

8 files changed

+563
-406
lines changed

images/code.png

285 Bytes
Loading

images/pattern.png

5.93 KB
Loading

images/tar.png

339 Bytes
Loading

images/top.png

218 Bytes
Loading

images/zip.png

337 Bytes
Loading

index.html

+58-38
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,65 @@
11
<!doctype html>
2+
<!-- The Time Machine GitHub pages theme was designed and developed by Jon Rohan, on Feb 7, 2012. -->
3+
<!-- Follow him for fun. http://twitter.com/jonrohan. Tail his code on https://github.com/jonrohan -->
24
<html>
3-
<head>
4-
<meta charset="utf-8">
5-
<meta http-equiv="X-UA-Compatible" content="chrome=1">
6-
<title>2016newprojects by natasha2016github</title>
7-
8-
<link rel="stylesheet" href="stylesheets/styles.css">
9-
<link rel="stylesheet" href="stylesheets/github-light.css">
10-
<script src="javascripts/scale.fix.js"></script>
11-
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
12-
<!--[if lt IE 9]>
13-
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
14-
<![endif]-->
15-
</head>
16-
<body>
17-
<div class="wrapper">
18-
<header>
19-
<h1 class="header">2016newprojects</h1>
20-
<p class="header"></p>
21-
22-
<ul>
23-
<li class="download"><a class="buttons" href="https://github.com/natasha2016github/2016newprojects/zipball/master">Download ZIP</a></li>
24-
<li class="download"><a class="buttons" href="https://github.com/natasha2016github/2016newprojects/tarball/master">Download TAR</a></li>
25-
<li><a class="buttons github" href="https://github.com/natasha2016github/2016newprojects">View On GitHub</a></li>
26-
</ul>
27-
28-
<p class="header">This project is maintained by <a class="header name" href="https://github.com/natasha2016github">natasha2016github</a></p>
29-
30-
31-
</header>
32-
<section>
33-
<h1>
5+
<head>
6+
<meta charset="utf-8">
7+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
8+
9+
<link rel="stylesheet" href="stylesheets/stylesheet.css" media="screen">
10+
<link rel="stylesheet" href="stylesheets/github-dark.css">
11+
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
12+
<script type="text/javascript" src="javascripts/script.js"></script>
13+
14+
<title>2016newprojects</title>
15+
<meta name="description" content="">
16+
17+
<meta name="viewport" content="width=device-width,initial-scale=1">
18+
19+
</head>
20+
21+
<body>
22+
23+
<div class="wrapper">
24+
<header>
25+
<h1 class="title">2016newprojects</h1>
26+
</header>
27+
<div id="container">
28+
<p class="tagline"></p>
29+
<div id="main" role="main">
30+
<div class="download-bar">
31+
<div class="inner">
32+
<a href="https://github.com/natasha2016github/2016newprojects/tarball/master" class="download-button tar"><span>Download</span></a>
33+
<a href="https://github.com/natasha2016github/2016newprojects/zipball/master" class="download-button zip"><span>Download</span></a>
34+
<a href="https://github.com/natasha2016github/2016newprojects" class="code">View 2016newprojects on GitHub</a>
35+
</div>
36+
<span class="blc"></span><span class="trc"></span>
37+
</div>
38+
<article class="markdown-body">
39+
<h1>
3440
<a id="hello-natasha-" class="anchor" href="#hello-natasha-" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Hello Natasha... !!!</h1>
3541

3642
<p>Wise people never stop learning <img class="emoji" title=":sparkles:" alt=":sparkles:" src="https://assets-cdn.github.com/images/icons/emoji/unicode/2728.png" height="20" width="20" align="absmiddle"></p>
37-
</section>
38-
<footer>
39-
<p><small>Hosted on <a href="https://pages.github.com">GitHub Pages</a> using the Dinky theme</small></p>
40-
</footer>
43+
</article>
44+
</div>
4145
</div>
42-
<!--[if !IE]><script>fixScale(document);</script><![endif]-->
43-
44-
</body>
46+
<footer>
47+
<div class="owner">
48+
<p><a href="https://github.com/natasha2016github" class="avatar"><img src="https://avatars1.githubusercontent.com/u/16957076?v=3&amp;s=60" width="48" height="48"></a> <a href="https://github.com/natasha2016github">natasha2016github</a> maintains <a href="https://github.com/natasha2016github/2016newprojects">2016newprojects</a></p>
49+
50+
51+
</div>
52+
<div class="creds">
53+
<small>This page generated using <a href="https://pages.github.com/">GitHub Pages</a><br>theme by <a href="https://twitter.com/jonrohan/">Jon Rohan</a></small>
54+
</div>
55+
</footer>
56+
</div>
57+
<div class="current-section">
58+
<a href="#top">Scroll to top</a>
59+
<a href="https://github.com/natasha2016github/2016newprojects/tarball/master" class="tar">tar</a><a href="https://github.com/natasha2016github/2016newprojects/zipball/master" class="zip">zip</a><a href="" class="code">source code</a>
60+
<p class="name"></p>
61+
</div>
62+
63+
64+
</body>
4565
</html>

javascripts/script.js

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
(function($) {
2+
$(document).ready(function(){
3+
4+
// putting lines by the pre blocks
5+
$("pre").each(function(){
6+
var pre = $(this).text().split("\n");
7+
var lines = new Array(pre.length+1);
8+
for(var i = 0; i < pre.length; i++) {
9+
var wrap = Math.floor(pre[i].split("").length / 70)
10+
if (pre[i]==""&&i==pre.length-1) {
11+
lines.splice(i, 1);
12+
} else {
13+
lines[i] = i+1;
14+
for(var j = 0; j < wrap; j++) {
15+
lines[i] += "\n";
16+
}
17+
}
18+
}
19+
$(this).before("<pre class='lines'>" + lines.join("\n") + "</pre>");
20+
});
21+
22+
var headings = [];
23+
24+
var collectHeaders = function(){
25+
headings.push({"top":$(this).offset().top - 15,"text":$(this).text()});
26+
}
27+
28+
if($(".markdown-body h1").length > 1) $(".markdown-body h1").each(collectHeaders)
29+
else if($(".markdown-body h2").length > 1) $(".markdown-body h2").each(collectHeaders)
30+
else if($(".markdown-body h3").length > 1) $(".markdown-body h3").each(collectHeaders)
31+
32+
$(window).scroll(function(){
33+
if(headings.length==0) return true;
34+
var scrolltop = $(window).scrollTop() || 0;
35+
if(headings[0] && scrolltop < headings[0].top) {
36+
$(".current-section").css({"opacity":0,"visibility":"hidden"});
37+
return false;
38+
}
39+
$(".current-section").css({"opacity":1,"visibility":"visible"});
40+
for(var i in headings) {
41+
if(scrolltop >= headings[i].top) {
42+
$(".current-section .name").text(headings[i].text);
43+
}
44+
}
45+
});
46+
47+
$(".current-section a").click(function(){
48+
$(window).scrollTop(0);
49+
return false;
50+
})
51+
});
52+
})(jQuery)

0 commit comments

Comments
 (0)