Commit 4331bd151446a1d95043bd61d557e08fbdd78ff5

Authored by Andrew Buss
1 parent 5a0a5435a4

disable tooltips on cards to improve performance

Showing 3 changed files with 8 additions and 8 deletions Side-by-side Diff

scripts/FlashcardDirective.js View file @ 4331bd1
... ... @@ -9,10 +9,10 @@
9 9 flashcard: '=flashcardObj', // flashcard-obj in parent html
10 10 refresh: '&' // eval refresh in parent html
11 11 },
12   - link: function(scope, element) {
13   - $('.tooltipped').tooltip();
14   - /* Handles width of the card */
15   - }
  12 + //link: function(scope, element) {
  13 + // $('.tooltipped').tooltip();
  14 + // /* Handles width of the card */
  15 + //}
16 16 };
17 17 }
18 18 );
scripts/SettingsController.js View file @ 4331bd1
... ... @@ -27,7 +27,7 @@
27 27 callback(true);
28 28 }
29 29  
30   - console.log("gonna try to launch service worker now");
  30 + console.log('gonna try to launch service worker now');
31 31 navigator.serviceWorker.register('scripts/service-worker.js').then(
32 32 function(serviceWorkerRegistration) {
33 33 serviceWorkerRegistration.pushManager.subscribe().then(
... ... @@ -46,5 +46,5 @@
46 46 }
47 47 );
48 48 });
49   - });
  49 + });
templates/flashcard.html View file @ 4331bd1
1   -<div class="card flashy smallify black-text text-darken-2" ng-init="startShrink = false"
2   - ng-class="{'shrinky': startShrink, 'in-deck':flashcard.isInDeck()}">
  1 +<div class="card flashy smallify black-text text-darken-2"
  2 + ng-class="{'in-deck':flashcard.isInDeck()}">
3 3 <div class="valign-wrapper">
4 4 <div class="card-content valign center-align" ng-bind-html="flashcard.formatted_text"></div>
5 5 </div>