This repository has been archived by the owner on Jul 1, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathframe.js
52 lines (39 loc) · 1.64 KB
/
frame.js
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
if (localStorage["signed-in"] != "true") {
window.location.replace("./index.html");
}
$(function() {
var sidebarHeight = function() {
$('.row-top').height($('.top-banner').height());
var sidebarHeight = $(window).height()-$('.top-banner').height() - 10;
$('.sidebar').height(sidebarHeight);
var contentLeft = $('.sidebar').width()+20;
var contentWidth = $(window).width()-contentLeft-35;
$('#content').css('margin-left', contentLeft);
$('#content').width(contentWidth);
}
$(".row-top").load("header.html", function() {
$(".sidebar").load("sidebar.html", function() {
$("#modals").load("modals.html", function() {
sidebarHeight();
$(".dial").knob({
readOnly: true,
fgColor: "rgba(76,102,164,0.7)",
bgColor: "#FFFFFF",
thickness: 0.2,
width:100,
height:100,
displayInput: false
});
$(".reason-span").append(localStorage["reason"]);
$("#your-name").append(localStorage["name"]);
$(".sign-out").on("click", function() {
localStorage["signed-in"] = "false";
location.href="./index.html";
});
var modalFunctions = modalJavascript();
pageJavascript(modalFunctions);
});
});
});
$(window).resize(sidebarHeight);
});