-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
64 lines (64 loc) · 4.33 KB
/
popup.html
File metadata and controls
64 lines (64 loc) · 4.33 KB
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
<!doctype html>
<!--
This page is shown when the extension button is clicked, because the
"browser_action" field in manifest.json contains the "default_popup" key with
value "popup.html".
-->
<html data-ng-app="app">
<head>
<title>Quik Note</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" integrity="sha256-MfvZlkHCEqatNoGiOXveE8FIwMzZg4W85qfrfIFBfYc= sha512-dTfge/zgoMYpP7QbHy4gWMEGsbsdZeCXz7irItjcC3sPUFtf0kuFbDz/ixG7ArTxmDjLXDmezHubeNikyKGVyQ==" crossorigin="anonymous">
<link rel="stylesheet" href="animate.css">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="buttons.css">
<script src="angular.min.js"></script>
<script src="popup.js"></script>
</head>
<body ng-controller="appCtrl">
<!--FIRST SCREEN UPON CLICKING -->
<span id="new-note">
<div id="note-div">
<div contentEditable=true id="note-area" ng-keydown="$event.keyCode == 13 && $event.shiftKey ? (noteIsSavable ? saveNote() : null) : null"></div>
<div id="buttons">
<span id="all-button" class="view-all-homepage-button btn animated fadeInLeft" data-ng-click="viewAll()" title="Show List of All Notes">View All</span>
<span id="cancel-button" class="cancel-button-homepage btn animated zoomIn" data-ng-click="cancel()" title="Delete Note and Exit">Cancel</span>
<span id="save-button" class="save-button-homepage btn animated fadeInRight" data-ng-click="noteIsSavable() ? saveNote() : null" ng-class="{'not-selectable': !noteIsSavable()}" ng-mouseover="noteIsSavable()" title="Save Note and Url">Save</span>
</div>
</div>
<span class="animated fadeIn clickable-logo" data-ng-click="viewCreateNote()" style="-webkit-animation-duration: 1.5s" title="Take a new note">
<span class="q-logo" >Q</span><span class="logo-text">uik</span><span class="n-logo">N</span><span class='logo-text'>ote</span>
</span>
</span>
<!--Screen upon clicking view all-->
<span id="note-list" class="display-nothing">
<div id="top-bar-container" class="animated fadeIn" style="-webkit-animation-duration: 1.5s">
<span class="animated fadeIn clickable-logo" data-ng-click="viewCreateNote()" style="-webkit-animation-duration: 1.5s" title="Take a new note">
<span class="q-logo" >Q</span><span class="logo-text">uik</span><span class="n-logo">N</span><span class='logo-text'>ote</span>
</span>
<span id="search-bar-icon" class="glyphicon glyphicon-search"></span>
<span class="pull-right">
<input id="search-bar" ng-model="query" type="text" placeholder="Search..." autofocus>
</span>
</div>
<div id="all-notes-container">
<div id="all-notes" ng-repeat="notes in noteList | filter:query track by $index" ng-class="show-button" data-ng-mouseenter="hoverIn()" ng-mouseleave="hoverOut()">
<div class="note-date">{{notes.date.toString()}}</div>
<a class="open-note-button btn animated fadeIn" ng-href="{{notes.url}}" data-ng-click="loadUrl(notes.url, $event)" ng-show="hoverEdit"
title="{{returnUrlTooltip(notes.url)}}">
<span class="glyphicon glyphicon-share-alt" aria-hidden="true"></span>
</a>
<span class="edit-note-button btn animated fadeIn" ng-show="hoverEdit" data-ng-click="enableEdit ? nonEditable() : editable(); !enableEdit ? editNote($index) : focusOnEdit($index)"
title="{{enableEdit ? 'Save Note' : 'Edit Note'}}">
<span class="glyphicon" ng-class="!enableEdit ? 'glyphicon-pencil' : 'glyphicon-save green-color'" aria-hidden="true"></span>
</span>
<span class="delete-note-button btn animated fadeIn" ng-show="hoverEdit" data-ng-click="deleteNote($index)"
title="Delete Note">
<span class="glyphicon glyphicon-trash" aria-hidden="true"></span>
</span>
<div class="animated fadeInLeft" ng-class="hoverEdit ? 'text-top-margin' : 'title-text'">{{notes.title}}</div>
<div class="note-text animated fadeIn" contenteditable="{{enableEdit==undefined?false :enableEdit}}" id="{{'text'+$index}}" >{{notes.noteText.toString()}}</div>
</div>
</div>
</span>
</body>
</html>