-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathGraph.jsp
95 lines (84 loc) · 4.45 KB
/
Graph.jsp
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ page import= "com.Model.User" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>sentdecoder - Facebook Graph Analysis</title>
<link rel="stylesheet" href="css/material.min.css">
<script src="js/Chart.js"></script>
<link rel="stylesheet" href="css/style.css">
<script src="js/material.min.js"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<script src="js/graphjs.js"></script>
</head>
<body>
<%
User user = null;
boolean checkUser = false;
response.setHeader("Cache-Control","no-cache");
response.setHeader("Cache-Control","no-store");
response.setHeader("Pragma","no-cache");
response.setDateHeader ("Expires", 0);
if (session.getAttribute("user")==null) {
response.sendRedirect("index.jsp");
}
if (session.getAttribute("user")!=null){
user = (User)session.getAttribute("user");
checkUser = true;
}
%>
<!-- Simple header with fixed tabs. -->
<div class="demo-layout mdl-layout mdl-js-layout mdl-layout--fixed-header
mdl-layout--fixed-tabs">
<header class="mdl-layout__header" style="background-color:#37A1E7">
<div class="mdl-layout__drawer-button" style="padding-top:1px;padding-left:10px;height:30px;width:20px"><i class="material-icons">dehaze</i></div>
<div class="mdl-layout__header-row">
<!-- Title -->
<span class="mdl-layout-title">sentdecoder</span>
</div>
<!-- Tabs -->
</header>
<div class="demo-drawer mdl-layout__drawer mdl-color--blue-grey-900 mdl-color-text--blue-grey-50">
<span class="mdl-layout-title">sentdecoder</span>
<span class="mdl-layout-title">Hi, <%=checkUser==true?user.getFirstname():"Someone" %></span>
<nav class="demo-navigation mdl-navigation mdl-color--blue-grey-800">
<a class="mdl-navigation__link" style="font-size:16px;color:white" href="Dashboard.jsp"><i class="material-icons">dashboard</i> Dashboard</a>
<a class="mdl-navigation__link" style="font-size:16px;color:white" href="Summary.jsp"><i class="material-icons">chrome_reader_mode</i> Summarizer</a>
<a class="mdl-navigation__link" style="font-size:16px;color:white;background-color: #37A1E7" href="Graph.jsp"><i class="material-icons">widgets</i> Graph</a>
<a class="mdl-navigation__link" href="About.jsp" style="font-size:16px;color:white;"><i class="material-icons">person</i> About</a>
<a class="mdl-navigation__link" href="Guide.jsp" style="font-size:16px;color:white"><i class="material-icons">description</i> Guide</a>
<a class="mdl-navigation__link" href="Settings.jsp" style="font-size:16px;color:white"><i class="material-icons">settings</i> Settings</a>
<a class="mdl-navigation__link" href="LogoutServlet" style="font-size:16px;color:white"><i class="material-icons">exit_to_app</i> Logout</a>
</nav>
</div>
<div class="page-content">
<div class="mdl-grid">
<div class="mdl-cell mdl-cell--12-col" style="text-align:center;margin:auto;box-shadow: 1px 1px 1px 1px #D1D3D5;padding-bottom:35px;border:1px solid #D1D3D5;margin-top:10px">
<div style="padding-top:100px;text-align:center">
<div align="center"><a><span id="head" style="font-size:50px">Facebook </span><span id="head1" style="font-size:50px">Analysis</span></a></div>
</div>
<div id="placement">
<form name="search" onsubmit="return false;">
<table style="margin:auto"><tr>
<td><input id="brandName" type="text" name="pageName" placeholder="Enter your page name..." onkeypress="return graphEnter(event)"> </td>
<td><input id="brandName" type="text" name="accessToken" placeholder="Enter your access token..." onkeypress="return graphEnter(event)"> </td></tr>
<tr><td style="text-align:center;padding-top:20px" colspan=2><input id="buttonStyle" type="button" value="Graph" name='graphAnalyse' onclick="sendGraph()"></td></tr></table>
</form>
</div>
</div>
</div>
<div id="graphData" style="text-align:center;width:100%">
</div>
</div>
</div>
<!--DESIGN OF SNACKBAR STARTS HERE-->
<div id="error_snackbar" class="mdl-js-snackbar mdl-snackbar">
<div style="background-color:#37A1E7;font-size:16px;width:90%" class="mdl-snackbar__text"></div>
<button class="mdl-snackbar__action" style="color:white;font-size:14px"></button>
</div>
<!--DESIGN OF SNACKBAR ENDS HERE-->
</body>
</html>