{"id":887,"date":"2012-10-12T20:09:51","date_gmt":"2012-10-13T00:09:51","guid":{"rendered":"http:\/\/energyrealist.com\/?page_id=887"},"modified":"2012-10-14T18:54:27","modified_gmt":"2012-10-14T22:54:27","slug":"this-is-a-hem-test-page","status":"publish","type":"page","link":"https:\/\/energyrealist.com\/?page_id=887","title":{"rendered":"This is a HEM test page"},"content":{"rendered":"\r\n\r\n<link rel=\"stylesheet\" href=\"http:\/\/code.jquery.com\/ui\/1.9.0\/themes\/base\/jquery-ui.css\" \/>\r\n<script src=\"http:\/\/code.jquery.com\/jquery-1.8.2.js\"><\/script>\r\n<script src=\"http:\/\/code.jquery.com\/ui\/1.9.0\/jquery-ui.js\"><\/script>\r\n<script src=\"http:\/\/cdnjs.cloudflare.com\/ajax\/libs\/underscore.js\/1.4.1\/underscore-min.js\"><\/script>\r\n \r\n<p><b>What do you want to do?<\/b><\/p>\r\n\r\n<ul id=\"menu\">\r\n\t<li><a casKey=\"customerEntry\" href=\"#\">create customer entry<\/a><\/li>\r\n\t<li><a casKey=\"createRequest\" href=\"#\">create request<\/a><\/li>\r\n\t<li><a casKey=\"requestReport\" href=\"#\">get request report<\/a><\/li>\r\n\r\n\t<li><a casKey=\"createResponse\" href=\"#\">create response<\/a><\/li>\r\n\t<li><a casKey=\"createPrice\" href=\"#\">create price<\/a><\/li>\r\n<\/ul>\r\n\r\n<script type=\"text\/javascript\">\r\n\/\/ <![CDATA[\r\n\t$(function() {\r\n\r\n\t\t\/\/ caspio keys - should map those in menu above, \r\n\t\t\/\/ and divs wrapping caspio blocks \r\n\t\tvar casKeys = [\r\n\t\t\t'customerEntry',\r\n\t\t\t'createRequest',\r\n\t\t\t'requestReport',\r\n\t\t];\r\n\r\n\t\t\/\/ hides caspio blocks\r\n\t\tfunction hideCaspios() {\r\n\t\t\t_.each(casKeys, function(casKey) {\r\n\t\t\t\tconsole.log('hiding '+casKey);\r\n\t\t\t\t$('#'+casKey).hide();\r\n\t\t\t\tconsole.log($('#'+casKey));\r\n\t\t\t})\r\n\t\t}\r\n\r\n\t\t\/\/ show particular caspio block\r\n\t\tfunction showCaspio(casKey) {\r\n\t\t\tconsole.log('showing '+casKey);\r\n\t\t\t$('#'+casKey).show();\r\n\t\t}\r\n\r\n\t\t\/\/ init the menu\r\n\t\t$( \"#menu\" ).menu({               \r\n\t\t\tselect: function( event, ui ) { \r\n\t\t\t\t\/\/ get selected casKey                \r\n\t\t\t\tvar link = ui.item.children( \"a:first\" );\r\n\t\t\t\tvar casKey = link.attr( \"casKey\" );\r\n\r\n\t\t\t\t\/\/ show the selected caspio\r\n\t\t\t\thideCaspios()\r\n\t\t\t\tshowCaspio(casKey)\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t\/\/ start them hidden\r\n\t\thideCaspios()\r\n\t});\r\n\/\/ ]]>\r\n<\/script>\r\n\r\n\r\n\r\n\r\n<!-- Customer Entry -->\r\n\r\n<div id=\"customerEntry\">\r\n\r\n<div id=\"cb781e2000578c06e1bcf34e2aa07b\"><a href=\"http:\/\/www.caspio.com\" target=\"_blank\">Online Database<\/a> by Caspio<\/div>\r\n<script type=\"text\/javascript\" src=\"http:\/\/b6.caspio.com\/scripts\/e1.js\"><\/script>\r\n<script type=\"text\/javascript\" language=\"javascript\">try{f_cbload(\"781e2000578c06e1bcf34e2aa07b\",\"http:\");}catch(v_e){;}<\/script>\r\n<div id=\"cxkg\"><a href=\"http:\/\/b6.caspio.com\/dp.asp?AppKey=781e2000578c06e1bcf34e2aa07b\">Click here<\/a> to load this Caspio <a href=\"http:\/\/www.caspio.com\" title=\"Online Database\">Online Database<\/a>.<\/div>\r\n\r\n<\/div>\r\n\r\n<!-- Request -->\r\n\r\n<div id=\"createRequest\">\r\n\r\n<div id=\"cb781e2000df92a70fabab4d60bf00\"><a href=\"http:\/\/www.caspio.com\" target=\"_blank\">Online Database<\/a> by Caspio<\/div>\r\n<script type=\"text\/javascript\" src=\"http:\/\/b6.caspio.com\/scripts\/e1.js\"><\/script>\r\n<script type=\"text\/javascript\" language=\"javascript\">try{f_cbload(\"781e2000df92a70fabab4d60bf00\",\"http:\");}catch(v_e){;}<\/script>\r\n<div id=\"cxkg\"><a href=\"http:\/\/b6.caspio.com\/dp.asp?AppKey=781e2000df92a70fabab4d60bf00\">Click here<\/a> to load this Caspio <a href=\"http:\/\/www.caspio.com\" title=\"Online Database\">Online Database<\/a>.<\/div>\r\n\r\n<\/div>\r\n\r\n<!-- Request Report -->\r\n\r\n<div id=\"requestReport\">\r\n\r\n<div id=\"cb781e2000a2043b17ac1a47b28147\"><a href=\"http:\/\/www.caspio.com\" target=\"_blank\">Online Database<\/a> by Caspio<\/div>\r\n<script type=\"text\/javascript\" src=\"http:\/\/b6.caspio.com\/scripts\/e1.js\"><\/script>\r\n<script type=\"text\/javascript\" language=\"javascript\">try{f_cbload(\"781e2000a2043b17ac1a47b28147\",\"http:\");}catch(v_e){;}<\/script>\r\n<div id=\"cxkg\"><a href=\"http:\/\/b6.caspio.com\/dp.asp?AppKey=781e2000a2043b17ac1a47b28147\">Click here<\/a> to load this Caspio <a href=\"http:\/\/www.caspio.com\" title=\"Online Database\">Online Database<\/a>.<\/div>\r\n\r\n<\/div>\r\n\r\n\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":616,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-887","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/energyrealist.com\/index.php?rest_route=\/wp\/v2\/pages\/887","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/energyrealist.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/energyrealist.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/energyrealist.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/energyrealist.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=887"}],"version-history":[{"count":33,"href":"https:\/\/energyrealist.com\/index.php?rest_route=\/wp\/v2\/pages\/887\/revisions"}],"predecessor-version":[{"id":932,"href":"https:\/\/energyrealist.com\/index.php?rest_route=\/wp\/v2\/pages\/887\/revisions\/932"}],"up":[{"embeddable":true,"href":"https:\/\/energyrealist.com\/index.php?rest_route=\/wp\/v2\/pages\/616"}],"wp:attachment":[{"href":"https:\/\/energyrealist.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=887"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}