Guest User

Untitled

a guest
Feb 23rd, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.74 KB | None | 0 0
  1. -
  2. var pages = {
  3. folder1: {
  4. main: true,
  5. title: 'c',
  6. name: 'folder1',
  7. back: '',
  8. icons: [
  9. { type: 'folder', title: 'pictures', icon: 'folder_open', to: 'folder2'},
  10. { type: 'exe', title: 'exe', icon: 'launch' },
  11. { type: 'exe', title: 'img', icon: 'wallpaper' }
  12. ]
  13. },
  14. folder2: {
  15. title: 'pictures',
  16. name: 'folder2',
  17. back: 'folder1',
  18. icons: [
  19. { type: 'folder', title: 'back', icon: 'arrow_back', to: 'folder1' },
  20. { type: 'folder', title: 'cars', icon: 'folder_open', to: 'folder3' },
  21. { type: 'folder', title: 'business', icon: 'folder_open', to: 'folder4' },
  22. { type: 'exe', title: 'img', icon: 'wallpaper' },
  23. { type: 'exe', title: 'img', icon: 'wallpaper' },
  24. { type: 'exe', title: 'img', icon: 'wallpaper' },
  25. { type: 'exe', title: 'img', icon: 'wallpaper' },
  26. { type: 'exe', title: 'img', icon: 'wallpaper' }
  27. ]
  28. },
  29. folder3: {
  30. title: 'cars',
  31. name: 'folder3',
  32. back: 'folder2',
  33. icons: [
  34. { type: 'folder', title: 'back', icon: 'arrow_back', to: 'folder2' },
  35. { type: 'exe', title: 'img', icon: 'wallpaper' },
  36. { type: 'exe', title: 'img', icon: 'wallpaper' },
  37. { type: 'exe', title: 'img', icon: 'wallpaper' }
  38. ]
  39. },
  40. folder4: {
  41. title: 'business',
  42. name: 'folder4',
  43. back: 'folder2',
  44. icons: [
  45. { type: 'folder', title: 'back', icon: 'arrow_back', to: 'folder2' },
  46. { type: 'exe', title: 'img', icon: 'wallpaper' },
  47. { type: 'exe', title: 'img', icon: 'wallpaper' },
  48. { type: 'exe', title: 'img', icon: 'wallpaper' },
  49. { type: 'exe', title: 'img', icon: 'wallpaper' }
  50. ]
  51. }
  52. }
  53.  
  54. .container
  55. each page, pageID in pages
  56. input.switchpage(type="radio" name="page" id=page.name checked=page.main)
  57. .page
  58. .header
  59. label(for=page.name) #{page.title}
  60. - var back = page.back
  61. while back
  62. label(for=pages[back].name) #{pages[back].title}
  63. - back = pages[back].back
  64. .boxes
  65. - var split = false
  66. - var rowCnt = 0
  67. each icon, index in page.icons
  68. if rowCnt && !(rowCnt % 4)
  69. br
  70. if(icon.type == 'exe' && !split)
  71. - split = true
  72. - rowCnt = 0
  73. hr
  74. label.box(type = icon.type for=icon.to tabindex=1)
  75. .title #{icon.title}
  76. i.material-icons #{icon.icon}
  77. - rowCnt++
Add Comment
Please, Sign In to add comment