Skip to content

Commit 4af3c15

Browse files
committed
added themes, more changes
1 parent cfd8fd4 commit 4af3c15

8 files changed

+1219
-320
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/nbproject/private/
22
/nbproject
33
/.idea
4+
themelayout.psd

animations.html

+668
Large diffs are not rendered by default.

demo/demo.min.css

+14
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ ul.nav.nav-list li ul {
155155
ul.nav.nav-list li.active ul {
156156
display: block;
157157
}
158+
ul.nav.nav-list li.no-b-l a{
159+
box-shadow: none;
160+
}
158161
.navheader{
159162
margin-bottom: 0px;
160163
background: white;
@@ -177,4 +180,15 @@ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#3D83BF', endC
177180
.header p{
178181
color: #f8f8f8;
179182
font-size: 24px;
183+
}
184+
.v{
185+
vertical-align: text-top;
186+
}
187+
188+
.space10 {
189+
height: 10px;
190+
}
191+
body {
192+
font-family: Segoe UI, Frutiger, Frutiger Linotype, Dejavu Sans, Helvetica Neue, Arial, sans-serif;
193+
position: relative;
180194
}

demo/demo.min.js

+68-10
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,57 @@
1-
if (typeof jQuery == "undefined") {throw new Error("Documentation needs the jQuery library to function.")};
1+
if (typeof jQuery == "undefined") {
2+
throw new Error("Documentation needs the jQuery library to function.")
3+
}
4+
;
25
$('body').scrollspy({
36
target: '#my-nav',
47
offset: 20
58
});
6-
var bs = $('.footer').outerHeight()+10;
7-
$("#my-nav").sticky({topSpacing:20, bottomSpacing: bs});
9+
var bs = $('.footer').outerHeight() + 10;
10+
$("#my-nav").sticky({topSpacing: 20, bottomSpacing: bs});
811
$("span.version").html(version || "");
12+
$.fn.getCursorPosition = function () {
13+
var input = this.get(0);
14+
if (!input) return; // No (input) element found
15+
if ('selectionStart' in input) {
16+
// Standard-compliant browsers
17+
return input.selectionStart;
18+
} else if (document.selection) {
19+
// IE
20+
input.focus();
21+
var sel = document.selection.createRange();
22+
var selLen = document.selection.createRange().text.length;
23+
sel.moveStart('character', -input.value.length);
24+
return sel.text.length - selLen;
25+
}
26+
}
27+
function getCaretPosition(editableDiv) {
28+
var caretPos = 0,
29+
sel, range;
30+
if (window.getSelection) {
31+
sel = window.getSelection();
32+
if (sel.rangeCount) {
33+
range = sel.getRangeAt(0);
34+
if (range.commonAncestorContainer.parentNode == editableDiv) {
35+
caretPos = range.endOffset;
36+
}
37+
}
38+
} else if (document.selection && document.selection.createRange) {
39+
range = document.selection.createRange();
40+
if (range.parentElement() == editableDiv) {
41+
var tempEl = document.createElement("span");
42+
editableDiv.insertBefore(tempEl, editableDiv.firstChild);
43+
var tempRange = range.duplicate();
44+
tempRange.moveToElementText(tempEl);
45+
tempRange.setEndPoint("EndToEnd", range);
46+
caretPos = tempRange.text.length;
47+
}
48+
}
49+
return caretPos;
50+
}
51+
952
$(document).ready(function () {
1053
prettyPrint();
11-
setTimeout(function(){
54+
setTimeout(function () {
1255
return;
1356
$.confirm({
1457
title: 'Ahh, ad blockers',
@@ -21,16 +64,31 @@ $(document).ready(function () {
2164
}
2265
}
2366
})
24-
}, 1000)
67+
}, 1000);
68+
69+
$('.change-format-css').click(function(){
70+
$('.change-format-css').addClass('active');
71+
$('.change-format-less').removeClass('active');
72+
$('.format-less').hide();
73+
$('.format-css').show();
74+
});
75+
$('.change-format-less').click(function(){
76+
$('.change-format-less').addClass('active');
77+
$('.change-format-css').removeClass('active');
78+
$('.format-css').hide();
79+
$('.format-less').show();
80+
});
2581
});
26-
function rs(){
27-
if($(window).width() > 992){
82+
$('.format-css').hide();
83+
84+
function rs() {
85+
if ($(window).width() > 992) {
2886
$('#my-nav').show();
29-
}else{
87+
} else {
3088
$('#my-nav').hide();
3189
}
3290
}
33-
$(window).resize(function(){
91+
$(window).resize(function () {
3492
rs();
3593
})
36-
rs();
94+
rs();

0 commit comments

Comments
 (0)