Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.72 KB | None | 0 0
  1. <div ng-repeat="list in lists">
  2. <div style="float: left; margin-left: 5px;">
  3. <div id="tasks"><h3>{{ list.name }} {{$index}}</h3>
  4. <ul dnd-list="list.cards" ng-repeat="card in list.cards" dnd-drop="drop($parent.$index, $index, list._id)">
  5. <li dnd-dragstart="logEvent($parent.$index, $index, list._id)" dnd-draggable="card"
  6. dnd-selected="models.selected = card" ng-class="{'selected': models.selected === card}">
  7. {{card.name}}
  8. </li>
  9. </div>
  10. </div>
  11. </div>
  12.  
  13. $scope.logEvent = function (indeksList, indeksCard, idList) {
  14. $scope.MovingItem = {
  15. indeksList: indeksList,
  16. indeksCard: indeksCard,
  17. idList: idList
  18. }
  19. //console.log($scope.MovingItem)
  20. }
  21.  
  22. $scope.drop = function (indexList, indexCard, IdList) {
  23. let movingCard = $scope.lists[$scope.MovingItem.indeksList].cards[$scope.MovingItem.indeksCard];
  24. $scope.lists[$scope.MovingItem.indeksList].cards.splice($scope.MovingItem.indeksCard, 1);
  25. $scope.lists[indexList].cards.splice(indexCard, 0, movingCard);
  26. }
  27.  
  28. .tilt {
  29. transform: rotate(3deg);
  30. -moz-transform: rotate(3deg);
  31. -webkit-transform: rotate(3deg);
  32. }
  33.  
  34.  
  35. .column {
  36. width: 170px;
  37. float: left;
  38. padding-bottom: 100px;
  39. }
  40. .portlet {
  41. margin: 0 1em 1em 0;
  42. padding: 0.3em;
  43. }
  44. .portlet-header {
  45. padding: 0.2em 0.3em;
  46. margin-bottom: 0.5em;
  47. position: relative;
  48. }
  49. .portlet-toggle {
  50. position: absolute;
  51. top: 50%;
  52. right: 0;
  53. margin-top: -8px;
  54. }
  55. .portlet-content {
  56. padding: 0.4em;
  57. }
  58. .portlet-placeholder {
  59. border: 1px dotted black;
  60. margin: 0 1em 1em 0;
  61. height: 50px;
  62. }
  63.  
  64. /* <BEGIN> For OS X */
  65.  
  66. *:focus {
  67. outline: none;
  68. }
  69.  
  70. html {
  71. -webkit-font-smoothing: antialiased;
  72. -moz-osx-font-smoothing: grayscale;
  73. }
  74.  
  75. /* <END> For OS X */
  76.  
  77. body {
  78. font-family: 'Open Sans', sans-serif;
  79. background-color: #0375AB;
  80. }
  81.  
  82. #wrapper, #topbar-inner {
  83. width: 95%;
  84. margin: 0 auto;
  85. }
  86.  
  87. #topbar {
  88. background-color: #036492;
  89. }
  90.  
  91. #topbar-inner {
  92. height: 42px;
  93. position: relative;
  94. }
  95.  
  96. #topbar #nav {
  97. float: left;
  98. width: 25%;
  99. background: yellow;
  100. }
  101.  
  102. #topbar #logo {
  103. width: 100%;
  104. padding-top: 8px;
  105. text-align: center;
  106. }
  107.  
  108. #topbar #login {
  109. position: absolute;
  110. right: 0px;
  111. bottom: 10px;
  112. }
  113.  
  114. #topbar #logo h1 {
  115. margin: 0;
  116. display: inline;
  117. font-size: 24px;
  118. font-family: "Ubuntu", sans-serif;
  119. color: rgba(255, 255, 255, 0.3);
  120. }
  121.  
  122. #topbar #logo h1:hover {
  123. color: rgba(255, 255, 255, 0.8);
  124. cursor: pointer;
  125. }
  126.  
  127. #wrapper {
  128. margin-top: 30px;
  129. }
  130.  
  131. #tasks {
  132. width: 260px;
  133. padding: 7px;
  134. background-color: #E2E4E6;
  135. border-radius: 3px;
  136. }
  137.  
  138. #tasks h3 {
  139. padding: 0;
  140. margin: 0px 0px 5px 0px;
  141. font-weight: 400;
  142. font-size: 14px;
  143. }
  144.  
  145. #tasks ul {
  146. list-style-type: none;
  147. margin: 0;
  148. padding: 0;
  149. }
  150.  
  151. #tasks li {
  152. padding: 5px 8px;
  153. margin-bottom: 4px;
  154. background-color: #fff;
  155. border-bottom: 1px #CCCCCC solid;
  156. border-radius: 3px;
  157. font-weight: 300;
  158. }
  159.  
  160. #tasks li i {
  161. float: right;
  162. margin-top: 5px;
  163. }
  164.  
  165. #tasks li i:hover {
  166. cursor: pointer;
  167. }
  168.  
  169. #tasks li i.fa-trash-o {
  170. color: #888;
  171. font-size: 14px;
  172. }
  173.  
  174. /*#tasks li:last-child {
  175. background-color: #E2E4E6;
  176. border-bottom-width: 0;
  177. padding-left: 0;
  178. margin-bottom: 0px;
  179. text-align: center;
  180. }
  181.  
  182. #tasks li:last-child a {
  183. text-decoration: none;
  184. color: #A6A7A7;
  185. }*/
  186.  
  187. #tasks input[type=text] {
  188. margin: 0;
  189. width: 244px;
  190. padding: 5px 8px;
  191. border-width: 0;
  192. border-radius: 3px;
  193. box-shadow: none;
  194. }
  195.  
  196. .btn-login {
  197. color: #fff;
  198. background-color: #448DAF;
  199. text-decoration: none;
  200. border-radius: 3px;
  201. padding: 5px 10px;
  202. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement