You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

126 lines
5.3 KiB

  1. <!DOCTYPE html>
  2. <html ng-app="workApp">
  3. <head>
  4. <!--Import Google Icon Font-->
  5. <link href="fonts/icons.css" rel="stylesheet">
  6. <!--Import materialize.css-->
  7. <link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection"/>
  8. <link type="text/css" rel="stylesheet" href="own.css"/>
  9. <!--Let browser know website is optimized for mobile-->
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  11. <title>Open Work Time - local version</title>
  12. </head>
  13. <body ng-controller="workController as work">
  14. <nav>
  15. <div class="nav-wrapper blue-grey darken-1">
  16. <a href="#" class="brand-logo">Open Work Time - local version</a>
  17. <ul id="nav-mobile" class="right">
  18. <li>
  19. <a ng-click="openCode()" target="_blank">
  20. <i class="large material-icons" title="Visit code">code</i>
  21. </a>
  22. </li>
  23. <li>
  24. <a ng-click="deleteStorage()">
  25. <i class="large material-icons" title="Delete storage">info_outline</i>
  26. </a>
  27. </li>
  28. <li>
  29. <a ng-click="saveStorage()" title="Save all to storage">
  30. <i class="large material-icons">perm_identity</i>
  31. </a>
  32. </li>
  33. </ul>
  34. </div>
  35. </nav>
  36. <div class="">
  37. <div class="row">
  38. <div class="card blue-grey lighten-4 col s12 m5 l5">
  39. <div class="card-content">
  40. <span class="card-title">Projects</span>
  41. <div class="collection">
  42. <a href="#!" ng-click="projectSelect($index)" ng-repeat="project in projects" class="collection-item avatar blue-grey lighten-4">
  43. <div class="waves-effect waves-light btn-floating blue-grey lighten-2 right" ng-click="removeProject($index)">
  44. <i class="material-icons"><img src="img/trash.png" class="o_trash_icon" /></i>
  45. </div>
  46. <img ng-src="img/coding/{{project.icon}}.png" class="circle"/>
  47. <span class="title">{{project.title}}</span>
  48. <p class="grey-text">{{project.totaltime | secondsToDateTime | date:'HH:mm:ss'}}</p>
  49. </a>
  50. </div>
  51. </div>
  52. <div class="card-action">
  53. <div class="input-field col s6">
  54. <input ng-model="newproject.title" id="newprojectname" type="text" class="validate">
  55. <label for="newprojectname">New project name</label>
  56. </div>
  57. <div class="input-field col s6">
  58. <input ng-model="newproject.icon" id="icon" type="text" class="validate">
  59. <label for="icon">icon</label>
  60. </div>
  61. <a ng-click="addNewProject()" class="waves-effect waves-light btn blue-grey lighten-1 right">Add new project</a>
  62. </div>
  63. </div>
  64. <div ng-show="currentproject.title" class="card blue-grey lighten-4 col s12 m7 l7">
  65. <div class="card-content">
  66. <span class="card-title">
  67. <img ng-src="img/coding/{{currentproject.icon}}.png" class="o_project_title_img"/>
  68. {{currentproject.title}}
  69. </span>
  70. <p>
  71. Total time: {{currentproject.totaltime | secondsToDateTime | date:'HH:mm:ss'}}
  72. </p>
  73. <p>
  74. Current strike time: <b>{{currentStrike | secondsToDateTime | date:'HH:mm:ss'}}</b>
  75. </p>
  76. </div>
  77. <div class="card-action">
  78. <a ng-click="btnWork()" ng-show="!working" class="waves-effect waves-light btn green lighten-2">Work!</a>
  79. <a ng-click="btnStop()" ng-show="working" class="waves-effect waves-light btn red lighten-2">Stop!</a>
  80. <!--<a class="waves-effect waves-light btn deep-orange lighten-2">Stop working!</a>-->
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. <!-- ELECTRON
  86. Insert this line above script imports
  87. Works for both browser and electron with the same code -->
  88. <script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
  89. <!-- ANGULAR -->
  90. <script src="libraries/angular.min.js"></script>
  91. <!--Import jQuery before materialize.js-->
  92. <script type="text/javascript" src="js/jquery-2.1.1.min.js"></script>
  93. <script type="text/javascript" src="js/materialize.min.js"></script>
  94. <script src="controllers.js"></script>
  95. <script src="libraries/toastr.js"></script>
  96. <link type="text/css" rel="stylesheet" href="libraries/toastr.css"/>
  97. <!-- ELECTRON
  98. Insert this line after script imports -->
  99. <script>if (window.module) module = window.module;</script>
  100. </body>
  101. </html>