Skip to content

Commit

Permalink
Added language-stating comment headers to sample json
Browse files Browse the repository at this point in the history
  • Loading branch information
G33kDude committed Dec 23, 2017
1 parent 499be90 commit 32cab12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/pages.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"AHK":"Page := 1\r\nWB.document.parentWindow.ahk_next_page := Func(\"Next\")\r\nWB.document.parentWindow.ahk_prev_page := Func(\"Prev\")\r\n\r\nNext()\r\n{\r\n\tglobal Page\r\n\tShowPage(Page := Clamp(Page+1, 1, 4))\r\n}\r\n\r\nPrev()\r\n{\r\n\tglobal Page\r\n\tShowPage(Page := Clamp(Page-1, 1, 4))\r\n}\r\n\r\nShowPage(Page)\r\n{\r\n\tglobal WB\t\r\n\tPages := WB.document.getElementsByClassName(\"page\")\r\n\tLoop, % Pages.Length\r\n\t\t\tPages[A_Index-1].hidden := (A_Index == Page)-1\r\n}\r\n\r\nClamp(Val, Min, Max)\r\n{\r\n\treturn Val<Min?Min:Val>Max?Max:Val\r\n}","CSS":"body {\r\n\tmargin: 0; padding: 0;\r\n\tbackground-color: #f0f0f0;\r\n}\r\n\r\nheader {\r\n\tpadding: 1.5em;\r\n\tfont-size: 2em;\r\n\tfont-family: Verdana;\r\n\ttext-align: right;\r\n\tbackground-color: silver;\r\n\tcolor: navy;\r\n}\r\n\r\nnav {\r\n\ttext-align: center;\r\n\tmargin: 0.25em;\r\n}\r\n\r\n.page {\r\n\tpadding: 1em;\r\n}","HTML":"<header>\r\n\t<span>MultiEdit<\/span>\r\n<\/header>\r\n\r\n<nav>\r\n\t<button onclick=\"ahk_prev_page()\">Back<\/button>\r\n\t<button onclick=\"ahk_next_page()\">Next<\/button>\r\n<\/nav>\r\n\r\n<div class=\"page\">\r\n\t<span>One<\/span>\r\n<\/div>\r\n\r\n<div class=\"page\" hidden>\r\n\t<span>Two<\/span>\r\n<\/div>\r\n\r\n<div class=\"page\" hidden>\r\n\t<span>Three<\/span>\r\n<\/div>\r\n\r\n<div class=\"page\" hidden>\r\n\t<span>Four<\/span>\r\n<\/div>","JS":"\/\/ JavaScript\r\n\r\n"}
{"AHK":"; AutoHotkey\r\n\r\nPage := 1\r\nWB.document.parentWindow.ahk_next_page := Func(\"Next\")\r\nWB.document.parentWindow.ahk_prev_page := Func(\"Prev\")\r\n\r\nNext()\r\n{\r\n\tglobal Page\r\n\tShowPage(Page := Clamp(Page+1, 1, 4))\r\n}\r\n\r\nPrev()\r\n{\r\n\tglobal Page\r\n\tShowPage(Page := Clamp(Page-1, 1, 4))\r\n}\r\n\r\nShowPage(Page)\r\n{\r\n\tglobal WB\t\r\n\tPages := WB.document.getElementsByClassName(\"page\")\r\n\tLoop, % Pages.Length\r\n\t\t\tPages[A_Index-1].hidden := (A_Index == Page)-1\r\n}\r\n\r\nClamp(Val, Min, Max)\r\n{\r\n\treturn Val<Min?Min:Val>Max?Max:Val\r\n}","CSS":"\/* CSS *\/\r\n\r\nbody {\r\n\tmargin: 0; padding: 0;\r\n\tbackground-color: #f0f0f0;\r\n}\r\n\r\nheader {\r\n\tpadding: 1.5em;\r\n\tfont-size: 2em;\r\n\tfont-family: Verdana;\r\n\ttext-align: right;\r\n\tbackground-color: silver;\r\n\tcolor: navy;\r\n}\r\n\r\nnav {\r\n\ttext-align: center;\r\n\tmargin: 0.25em;\r\n}\r\n\r\n.page {\r\n\tpadding: 1em;\r\n}","HTML":"<!-- HTML -->\r\n\r\n<header>\r\n\t<span>MultiEdit<\/span>\r\n<\/header>\r\n\r\n<nav>\r\n\t<button onclick=\"ahk_prev_page()\">Back<\/button>\r\n\t<button onclick=\"ahk_next_page()\">Next<\/button>\r\n<\/nav>\r\n\r\n<div class=\"page\">\r\n\t<span>One<\/span>\r\n<\/div>\r\n\r\n<div class=\"page\" hidden>\r\n\t<span>Two<\/span>\r\n<\/div>\r\n\r\n<div class=\"page\" hidden>\r\n\t<span>Three<\/span>\r\n<\/div>\r\n\r\n<div class=\"page\" hidden>\r\n\t<span>Four<\/span>\r\n<\/div>","JS":"\/\/ JavaScript\r\n\r\n"}

0 comments on commit 32cab12

Please sign in to comment.