index.html 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  3. <head>
  4. <title>Untitled Document</title>
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
  6. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  8. <meta name="apple-mobile-web-app-capable" content="yes" />
  9. <link type="text/css" href="resources/css/reset.css" rel="Stylesheet" />
  10. <link type="text/css" href="resources/css/default.css" rel="Stylesheet" />
  11. <!--<link href='https://fonts.googleapis.com/css?family=Nunito:300' rel='stylesheet' type='text/css'>-->
  12. <script type="text/javascript">
  13. if (location.href.toString().indexOf('file://localhost/') == 0) {
  14. location.href = location.href.toString().replace('file://localhost/', 'file:///');
  15. }
  16. </script>
  17. <!-- 8.0.0.3398 -->
  18. <script src="resources/scripts/jquery-1.7.1.min.js"></script>
  19. <script src="resources/scripts/startPre.js"></script>
  20. <script src="data/document.js"></script>
  21. <style type="text/css">
  22. #outerContainer {
  23. width:1000px;
  24. height:1500px;
  25. }
  26. .vsplitbar {
  27. width: 3px;
  28. /*background: #B9B9B9;*/
  29. border-right: 1px solid #8f949a;
  30. }
  31. .vsplitbar:hover, .vsplitbar.active {
  32. background: #8f949a;
  33. }
  34. #rightPanel {
  35. background-color: White;
  36. }
  37. #interfaceControlFrameHeaderContainer{
  38. display: none!important;
  39. }
  40. #interfaceControlFrame {
  41. margin: 0!important;
  42. }
  43. #leftPanel {
  44. width: 240px!important;
  45. }
  46. #sitemapHeader {
  47. display: none!important;
  48. }
  49. #searchDiv {
  50. margin-top: 20px;
  51. }
  52. /*#leftPanel {
  53. min-width: 120px;
  54. }*/
  55. .splitterMask {
  56. position:absolute;
  57. top: 0;
  58. left: 0;
  59. width: 100%;
  60. height: 100%;
  61. overflow: hidden;
  62. background-image: url(resources/images/transparent.gif);
  63. z-index: 20000;
  64. }
  65. </style>
  66. <script type="text/javascript" language="JavaScript">
  67. var SITEMAP_COLLAPSE_VAR_NAME = 'c';
  68. var PLUGIN_VAR_NAME = 'g';
  69. var FOOTNOTES_VAR_NAME = 'fn';
  70. var ADAPTIVE_VIEW_VAR_NAME = 'view';
  71. var lastLeftPanelWidth = 295;
  72. var toolBarOnly = true;
  73. // isolate scope
  74. (function() {
  75. setUpController();
  76. var configuration = $axure.document.configuration;
  77. var _settings = {};
  78. _settings.projectId = configuration.prototypeId;
  79. _settings.isAxshare = configuration.isAxshare;
  80. _settings.loadFeedbackPlugin = configuration.loadFeedbackPlugin;
  81. var cHash = getHashStringVar(SITEMAP_COLLAPSE_VAR_NAME);
  82. _settings.startCollapsed = cHash == "1";
  83. if(cHash == "2") closePlayer();
  84. var gHash = getHashStringVar(PLUGIN_VAR_NAME);
  85. if(gHash == "") gHash = 1;
  86. _settings.startPluginGid = gHash;
  87. $axure.player.settings = _settings;
  88. // $(window).bind('load', function() {
  89. // if(CHROME_5_LOCAL && !$('body').attr('pluginDetected')) {
  90. // window.location = 'resources/chrome/chrome.html';
  91. // }
  92. // if (FIREFOX && BROWSER_VERSION >= 68 && document.location.href.indexOf('file://') >= 0) { //detecting firefox and local
  93. // window.location = 'resources/chrome/firefox.html';
  94. // }
  95. // });
  96. $(document).ready(function() {
  97. $axure.page.bind('load.start', mainFrame_onload);
  98. $axure.messageCenter.addMessageListener(messageCenter_message);
  99. $(document).on('pluginShown', function (event, data) {
  100. setVarInCurrentUrlHash('g', data ? data : '');
  101. });
  102. $(document).on('pluginCreated', function(event, data) {
  103. if($axure.player.settings.startPluginGid == data) {
  104. $axure.player.showPlugin(data);
  105. }
  106. });
  107. if($axure.player.settings.loadFeedbackPlugin) {
  108. if($axure.player.settings.isAxshare) {
  109. $axure.utils.loadJS('/Scripts/plugins/feedback/feedback8.js');
  110. } else {
  111. $axure.utils.loadJS('http://share.axure.com/Scripts/plugins/feedback/feedback8.js');
  112. }
  113. }
  114. if(navigator.userAgent.indexOf("MSIE") >= 0) $('#outerContainer').width('100%');
  115. initialize();
  116. if($axure.player.settings.startCollapsed) $('#outerContainer').splitter({ sizeLeft: 0 });
  117. else $('#outerContainer').splitter({ sizeLeft: lastLeftPanelWidth });
  118. $('#leftPanel').width(lastLeftPanelWidth);
  119. $(window).resize(function() { resizeContent(); });
  120. $('#maximizePanelContainer').hide();
  121. initializeLogo();
  122. $(window).resize();
  123. resizeContent();
  124. $axure.player.collapseToBar();
  125. if($axure.player.settings.startCollapsed) {
  126. collapse();
  127. $('#leftPanel').width(0);
  128. }
  129. if(MOBILE_DEVICE) {
  130. $('#interfaceControlFrameMinimizeContainer').height('45px');
  131. $('#interfaceControlFrameMinimizeContainer a').height('45px');
  132. $('#interfaceControlFrameHeaderContainer').css('margin-top','45px');
  133. $('#interfaceControlFrameCloseContainer a').css('padding','10px 0px');
  134. $('#maximizePanelContainer').height('45px');//.css('top','inherit').css('bottom','0px');
  135. $('body').removeClass('hashover');
  136. if(IOS) {
  137. $('#rightPanel').css('overflow', 'auto').css('-webkit-overflow-scrolling', 'touch').css('-ms-overflow-x', 'hidden');
  138. window.addEventListener("orientationchange", function() {
  139. var viewport = document.querySelector("meta[name=viewport]");
  140. //so iOS doesn't zoom when switching back to portrait
  141. viewport.setAttribute('content', 'width=device-width, initial-scale=1.0, maximum-scale=1.0');
  142. viewport.setAttribute('content', 'width=device-width, initial-scale=1.0');
  143. resizeContent();
  144. }, false);
  145. $axure.page.bind('load.start', function() {
  146. resizeContent();
  147. });
  148. }
  149. }
  150. });
  151. function initialize() {
  152. var legacyQString = getQueryString("Page");
  153. if (legacyQString.length > 0) {
  154. location.href = location.href.substring(0, location.href.indexOf("?")) + "#p=" + legacyQString;
  155. return;
  156. }
  157. var mainFrame = document.getElementById("mainFrame");
  158. //if it's local file on safari, test if we can access mainframe after its loaded
  159. if(SAFARI && document.location.href.indexOf('file://') >= 0) {
  160. $(mainFrame).load(function () {
  161. var canAccess;
  162. try {
  163. var mainFrameWindow = mainFrame.contentWindow || mainFrame.contentDocument;
  164. mainFrameWindow['safari_file_CORS'] = 'Y';
  165. canAccess = mainFrameWindow['safari_file_CORS'] === 'Y';
  166. } catch(err) {
  167. canAccess = false;
  168. }
  169. if(!canAccess) window.location = 'resources/chrome/safari.html';
  170. });
  171. }
  172. mainFrame.contentWindow.location.href = getInitialUrl();
  173. }
  174. function initializeLogo() {
  175. if($axure.document.configuration.logoImagePath) {
  176. var image = new Image();
  177. image.onload = function() {
  178. $('#logoImage').css('max-width', this.width + 'px');
  179. $axure.player.resizeContent();
  180. };
  181. image.src = $axure.document.configuration.logoImagePath;
  182. $('#interfaceControlFrameLogoImageContainer').html('<img id="logoImage" src="" />');
  183. $('#logoImage').attr('src', $axure.document.configuration.logoImagePath).load(function() { resizeContent(); });
  184. } else $('#interfaceControlFrameLogoImageContainer').hide();
  185. if ($axure.document.configuration.logoImageCaption) {
  186. $('#interfaceControlFrameLogoCaptionContainer').html($axure.document.configuration.logoImageCaption);
  187. } else $('#interfaceControlFrameLogoCaptionContainer').hide();
  188. if(!$('#interfaceControlFrameLogoImageContainer').is(':visible') && !$('#interfaceControlFrameLogoCaptionContainer').is(':visible')) {
  189. $('#interfaceControlFrameLogoContainer').hide();
  190. }
  191. }
  192. var resizeContent = $axure.player.resizeContent = function() {
  193. var newHeight = $(window).height();
  194. var newWidth = $(window).width();
  195. var controlContainerHeight = newHeight;// - 30;
  196. if($('#interfaceControlFrameLogoContainer').is(':visible')) controlContainerHeight -= $('#interfaceControlFrameLogoContainer').outerHeight();// + 16;
  197. $('#outerContainer').height(newHeight).width(newWidth);
  198. $('.vsplitbar').height(newHeight);
  199. $('#leftPanel').height(newHeight);
  200. $('#interfaceControlFrame').height(newHeight);
  201. $('#interfaceControlFrameContainer').height(newHeight);
  202. $('#interfaceControlFrameHostContainer').height(controlContainerHeight);
  203. $('#rightPanel').height(newHeight);
  204. $('#mainFrame').height(newHeight);
  205. if($('#leftPanel').is(':visible')) $('#rightPanel').width($(window).width() - $('#leftPanel').width() - 1);// $('.vsplitbar').width());
  206. else $('#rightPanel').width($(window).width());
  207. $(document).trigger('ContainerHeightChange',[controlContainerHeight]);
  208. if(MOBILE_DEVICE) {
  209. if(!(getHashStringVar(ADAPTIVE_VIEW_VAR_NAME).length > 0)) $axure.messageCenter.postMessage('setAdaptiveViewForSize', {'width':newWidth, 'height':$('#rightPanel').height()});
  210. }
  211. }
  212. var collapseToBar = $axure.player.collapseToBar = function() {
  213. lastLeftPanelWidth = $('#leftPanel').width();
  214. $('#leftPanel').width('55px');
  215. $('.vsplitbar').hide();
  216. $('#rightPanel').width($(window).width() - $('#leftPanel').width());
  217. $(window).resize();
  218. $('#outerContainer').trigger('resize');
  219. toolBarOnly = true;
  220. }
  221. var expandFromBar = $axure.player.expandFromBar = function() {
  222. if($('.vsplitbar').is(':visible')) return;
  223. $('#leftPanel').width(lastLeftPanelWidth);
  224. $('.vsplitbar').show();
  225. $('#rightPanel').width($(window).width() - $('#leftPanel').width() - 1);// $('.vsplitbar').width());
  226. $(window).resize();
  227. $('#outerContainer').trigger('resize');
  228. toolBarOnly = false;
  229. }
  230. })();
  231. function messageCenter_message(message, data) {
  232. if(message == 'expandFrame') expand();
  233. else if(message == 'getCollapseFrameOnLoad' && $axure.player.settings.startCollapsed && !MOBILE_DEVICE) $axure.messageCenter.postMessage('collapseFrameOnLoad');
  234. }
  235. function getInitialUrl() {
  236. var pageName = getHashStringVar("p");
  237. if(pageName.length > 0) return pageName + ".html";
  238. else {
  239. var url = getFirstPageUrl($axure.document.sitemap.rootNodes);
  240. return (url ? url : "about:blank");
  241. }
  242. }
  243. function getFirstPageUrl(nodes) {
  244. for (var i = 0; i < nodes.length; i++) {
  245. var node = nodes[i];
  246. if (node.url) return node.url;
  247. else {
  248. var hasChildren = (node.children && node.children.length > 0);
  249. if (hasChildren) {
  250. var url = getFirstPageUrl(node.children);
  251. if (url) return url;
  252. }
  253. }
  254. }
  255. return null;
  256. }
  257. function closePlayer() {
  258. if($axure.page.location) window.location.href = $axure.page.location;
  259. else {
  260. var pageFile = getInitialUrl();
  261. var currentLocation = window.location.toString();
  262. window.location.href = currentLocation.substr(0, currentLocation.lastIndexOf("/") + 1) + pageFile;
  263. }
  264. }
  265. function replaceHash(newHash) {
  266. var currentLocWithoutHash = window.location.toString().split('#')[0];
  267. //We use replace so that every hash change doesn't get appended to the history stack.
  268. //We use replaceState in browsers that support it, else replace the location
  269. if(typeof window.history.replaceState != 'undefined') {
  270. try {
  271. //Chrome 45 (Version 45.0.2454.85 m) started throwing an error here when generated locally (this only happens with sitemap open) which broke all interactions.
  272. //try catch breaks the url adjusting nicely when the sitemap is open, but all interactions and forward and back buttons work.
  273. //Uncaught SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL 'file:///C:/Users/Ian/Documents/Axure/HTML/Untitled/start.html#p=home' cannot be created in a document with origin 'null'.
  274. window.history.replaceState(null, null, currentLocWithoutHash + newHash);
  275. } catch(ex) {}
  276. } else {
  277. window.location.replace(currentLocWithoutHash + newHash);
  278. }
  279. }
  280. function collapse() {
  281. setVarInCurrentUrlHash('c', 1);
  282. if(!toolBarOnly) lastLeftPanelWidth = $('#leftPanel').width();
  283. $('#maximizePanelContainer').show();
  284. $('#leftPanel').hide();
  285. $('.vsplitbar').hide();
  286. $('#rightPanel').width($(window).width());
  287. $(window).resize();
  288. $('#outerContainer').trigger('resize');
  289. $(document).trigger('sidebarCollapse');
  290. if(MOBILE_DEVICE) {
  291. $('#maximizePanelContainer').animate({
  292. top:$('#rightPanel').height() - $('#maximizePanelContainer').height()
  293. }, 300, 'swing', function() {
  294. $('#maximizePanelContainer').css('top', 'inherit').css('bottom', '0px');
  295. });
  296. }
  297. }
  298. function expand() {
  299. if(MOBILE_DEVICE) {
  300. $('#maximizePanelContainer').css('top', '0px').css('bottom', 'inherit');
  301. }
  302. deleteVarFromCurrentUrlHash('c');
  303. $('#maximizePanelContainer').hide();
  304. $('#leftPanel').width(lastLeftPanelWidth);
  305. $('#leftPanel').show();
  306. if(!toolBarOnly) {
  307. $('.vsplitbar').show();
  308. $('#rightPanel').width($(window).width() - $('#leftPanel').width() - 1);
  309. } else {
  310. $axure.player.collapseToBar();
  311. }
  312. $(window).resize();
  313. $('#outerContainer').trigger('resize');
  314. $(document).trigger('sidebarExpanded');
  315. }
  316. function mainFrame_onload() {
  317. if($axure.page.pageName) document.title = $axure.page.pageName;
  318. }
  319. function getQueryString(query) {
  320. var qstring = self.location.href.split("?");
  321. if(qstring.length < 2) return "";
  322. return GetParameter(qstring, query);
  323. }
  324. function GetParameter(qstring, query) {
  325. var prms = qstring[1].split("&");
  326. var frmelements = new Array();
  327. var currprmeter, querystr = "";
  328. for(var i = 0; i < prms.length; i++) {
  329. currprmeter = prms[i].split("=");
  330. frmelements[i] = new Array();
  331. frmelements[i][0] = currprmeter[0];
  332. frmelements[i][1] = currprmeter[1];
  333. }
  334. for(j = 0; j < frmelements.length; j++) {
  335. if(frmelements[j][0].toLowerCase() == query.toLowerCase()) {
  336. querystr = frmelements[j][1];
  337. break;
  338. }
  339. }
  340. return querystr;
  341. }
  342. function getHashStringVar(query) {
  343. var qstring = self.location.href.split("#");
  344. if(qstring.length < 2) return "";
  345. return GetParameter(qstring, query);
  346. }
  347. function setHashStringVar(currentHash, varName, varVal) {
  348. var varWithEqual = varName + '=';
  349. var poundVarWithEqual = varVal === '' ? '' : '#' + varName + '=' + varVal;
  350. var ampVarWithEqual = varVal === '' ? '' : '&' + varName + '=' + varVal;
  351. var hashToSet = '';
  352. var pageIndex = currentHash.indexOf('#' + varWithEqual);
  353. if(pageIndex == -1) pageIndex = currentHash.indexOf('&' + varWithEqual);
  354. if(pageIndex != -1) {
  355. var newHash = currentHash.substring(0, pageIndex);
  356. newHash = newHash == '' ? poundVarWithEqual : newHash + ampVarWithEqual;
  357. var ampIndex = currentHash.indexOf('&', pageIndex + 1);
  358. if(ampIndex != -1) {
  359. newHash = newHash == '' ? '#' + currentHash.substring(ampIndex + 1) : newHash + currentHash.substring(ampIndex);
  360. }
  361. hashToSet = newHash;
  362. } else if(currentHash.indexOf('#') != -1) {
  363. hashToSet = currentHash + ampVarWithEqual;
  364. } else {
  365. hashToSet = poundVarWithEqual;
  366. }
  367. if(hashToSet != '' || varVal == '') {
  368. return hashToSet;
  369. }
  370. return null;
  371. }
  372. function setVarInCurrentUrlHash(varName, varVal) {
  373. var newHash = setHashStringVar(window.location.hash, varName, varVal);
  374. if(newHash != null) {
  375. replaceHash(newHash);
  376. }
  377. }
  378. function deleteHashStringVar(currentHash, varName) {
  379. var varWithEqual = varName + '=';
  380. var pageIndex = currentHash.indexOf('#' + varWithEqual);
  381. if(pageIndex == -1) pageIndex = currentHash.indexOf('&' + varWithEqual);
  382. if(pageIndex != -1) {
  383. var newHash = currentHash.substring(0, pageIndex);
  384. var ampIndex = currentHash.indexOf('&', pageIndex + 1);
  385. //IF begin of string....if none blank, ELSE # instead of & and rest
  386. //IF in string....prefix + if none blank, ELSE &-rest
  387. if(newHash == '') { //beginning of string
  388. newHash = ampIndex != -1 ? '#' + currentHash.substring(ampIndex + 1) : '';
  389. } else { //somewhere in the middle
  390. newHash = newHash + (ampIndex != -1 ? currentHash.substring(ampIndex) : '');
  391. }
  392. return newHash;
  393. }
  394. return null;
  395. }
  396. function deleteVarFromCurrentUrlHash(varName) {
  397. var newHash = deleteHashStringVar(window.location.hash, varName);
  398. if(newHash != null) {
  399. replaceHash(newHash);
  400. }
  401. }
  402. </script>
  403. <link type="text/css" rel="Stylesheet" href="plugins/sitemap/styles/sitemap.css" />
  404. <link type="text/css" rel="Stylesheet" href="plugins/page_notes/styles/page_notes.css" />
  405. <link type="text/css" rel="Stylesheet" href="plugins/debug/styles/debug.css" />
  406. <script src="resources/scripts/startPost.js"></script>
  407. <!--<link type="text/css" rel="Stylesheet" href="plugins/recordplay/styles/recordplay.css" />
  408. <script type="text/javascript" src="plugins/recordplay/recordplay.js"></script>-->
  409. </head>
  410. <body scroll="no" class="hashover">
  411. <div id="outerContainer">
  412. <div id="leftPanel">
  413. <div id="interfaceControlFrame">
  414. <div id="interfaceControlFrameMinimizeContainer">
  415. <a title="Collapse" id="interfaceControlFrameMinimizeButton" onclick="collapse();">&nbsp;</a>
  416. </div>
  417. <div id="interfaceControlFrameHeaderContainer">
  418. <ul id="interfaceControlFrameHeader"></ul>
  419. </div>
  420. <div id="interfaceControlFrameContainer">
  421. <div id="interfaceControlFrameLogoContainer">
  422. <div id="interfaceControlFrameLogoImageContainer"></div>
  423. <div id="interfaceControlFrameLogoCaptionContainer"></div>
  424. </div>
  425. <div id="interfaceControlFrameHostContainer">
  426. </div>
  427. </div>
  428. <!-- <div id="interfaceControlFrameCloseContainer">
  429. <a title="Close" id="interfaceControlFrameCloseButton" onclick="closePlayer();">CLOSE</a>
  430. </div> -->
  431. </div>
  432. </div>
  433. <div id="rightPanel">
  434. <iframe id="mainFrame" name="mainFrame" width="100%" height="100%" src="" frameborder="0" style="display: block;" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
  435. </div>
  436. </div>
  437. <div id="maximizePanelContainer">
  438. <div id="maximizePanelOver">
  439. <div id="maximizePanel" class="maximizePanel" title="Expand" onclick='expand();'>
  440. </div>
  441. </div>
  442. <!-- <iframe id="expandFrame" src="resources/expand.html" width="100%" height="100%" scrolling="no" allowtransparency="true" frameborder="0"></iframe> -->
  443. </div>
  444. </body>
  445. </html>