diff --git a/samples/pages.json b/samples/pages.json index f377ae5..e09b2f2 100644 --- a/samples/pages.json +++ b/samples/pages.json @@ -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 ValMax?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":"
\r\n\tMultiEdit<\/span>\r\n<\/header>\r\n\r\n