Skip to content

Commit

Permalink
add pbp js libs
Browse files Browse the repository at this point in the history
  • Loading branch information
ageyev committed Dec 4, 2016
1 parent 2cc5110 commit 491d218
Show file tree
Hide file tree
Showing 12,506 changed files with 53,534 additions and 164 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
5 changes: 5 additions & 0 deletions app/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ a:hover {

/*----- Icons ------------- */

.fa-icon{
height: 1.5em;
/* height: 33px; */
}

.orangeicon {
/*color: #dd4500; */
/*color: orangered;*/
Expand Down
27 changes: 21 additions & 6 deletions app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ app.run([
'$timeout',
'$cookies',
'$log',
'FileSaver',
'Blob',
'BrowserWindow', // from https://github.com/ozsay/angular-electron
'currentWindow',
function(GAuth,
Expand All @@ -58,6 +60,8 @@ app.run([
$timeout,
$cookies,
$log,
FileSaver,
Blob,
BrowserWindow,
currentWindow
) {
Expand Down Expand Up @@ -186,13 +190,24 @@ app.run([
};

$rootScope.reloadElectronWindow = function() {
$log.info(BrowserWindow);
$log.info(currentWindow);
currentWindow.reload();
$log.info("$rootScope.reloadElectronWindow()");
$log.info(BrowserWindow);
$log.info(currentWindow);
currentWindow.reload();
$log.info("$rootScope.reloadElectronWindow()");

}
// =============== Function calls:
};

$rootScope.downloadTextContent = function(textToSaveId, fileName) {
var textToSave = document.getElementById(textToSaveId).value;
// ng-model or fieldName.value or fieldName.value.toString
// does not work
$log.info("textToSave:");
$log.info(textToSave);
var data = new Blob([textToSave], { type: 'text/plain;charset=utf-8' });
FileSaver.saveAs(data, fileName);
};

// =============== Function calls:

$rootScope.progressbar = ngProgressFactory.createInstance();
$rootScope.progressbar.setHeight('5px'); // any valid CSS value Eg '10px', '1em' or '1%'
Expand Down
39 changes: 29 additions & 10 deletions app/directives/directives.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
(function () {
(function() {

'use strict';

var d = angular.module('cryptonomica.directives', []);

d.directive('testDirective1', function () {
d.directive('testDirective1', function() {
return {
restrict: 'EA', //E = element, A = attribute, C = class, M = comment
// <test-directive-1></test-directive-1>
// replace: 'true', // >> error
template: "<div>" +
"<h2>Test Directive #1</h2>" +
"<div>Name:{{customer.name}}<br>" +
"Street:{{customer.street}}" +
"</div>" +
"</div>"
// template: '<div>html of Directive 1</div>'
"<h2>Test Directive #1</h2>" +
"<div>Name:{{customer.name}}<br>" +
"Street:{{customer.street}}" +
"</div>" +
"</div>"
// template: '<div>html of Directive 1</div>'
};
});

d.directive('testDirective2', function () {
d.directive('testDirective2', function() {
return {
restrict: 'EA', //E = element, A = attribute, C = class, M = comment
// <test-directive-2></test-directive-2>
Expand All @@ -28,4 +28,23 @@
};
});

})();
d.directive('pgpServices', function() {
return {
restrict: 'EA', //E = element, A = attribute, C = class, M = comment
// <pgp-services></pgp-services>
// replace: 'true', // >> error
templateUrl: 'app/directives/pgp.services.directive.html'
};
});


d.directive('showNotaries', function() {
return {
restrict: 'EA', //E = element, A = attribute, C = class, M = comment
// <pgp-services></pgp-services>
// replace: 'true', // >> error
templateUrl: 'app/directives/show.notaries.directive.html'
};
});

})();
Loading

0 comments on commit 491d218

Please sign in to comment.