CryptPoll
- - - - --
-
diff --git a/customize.dist/pages.js b/customize.dist/pages.js index faf6965a4..3ca0028d1 100644 --- a/customize.dist/pages.js +++ b/customize.dist/pages.js @@ -259,8 +259,7 @@ define([ ]), ]) ] - .concat(tryIt()) - //.concat(indexContent()); + .concat(tryIt()); }; var loadingScreen = function () { @@ -427,5 +426,58 @@ define([ ]; }; + Pages['/poll/'] = Pages['/poll/index.html'] = function () { + return [ + appToolbar(), + h('div#content', [ + h('div#poll', [ + h('div#howItWorks', [ + h('h1', 'CryptPoll'), + h('h2', Msg.poll_subtitle), + h('p', Msg.poll_p_save), + h('p', Msg.poll_p_encryption) + ]), + h('div.upper', [ + h('button#publish', { + style: { display: 'none' } + }, Msg.poll_publish_button), + h('button#admin', { + style: { display: 'none' }, + title: Msg.poll_admin_button + }, Msg.poll_admin_button), + h('button#help', { + title: Msg.poll_show_help_button, + style: { display: 'none' } + }, Msg.poll_show_help_button) + ]), + h('div.realtime', [ + h('br'), + h('center', [ + h('textarea#description', { + rows: "5", + cols: "50", + disabled: true + }), + h('br') + ]), + h('div#tableContainer', [ + h('div#tableScroll'), + h('button#create-user', { + title: Msg.poll_create_user + }, h('span.fa.fa-plus')), + h('button#create-option', { + title: Msg.poll_create_option + }, h('span.fa.fa-plus')), + h('button#commit', { + title: Msg.poll_commit + }, h('span.fa.fa-check')) + ]) + ]) + ]) + ]), + loadingScreen() + ]; + }; + return Pages; }); diff --git a/customize.dist/template.js b/customize.dist/template.js index 563bc4708..02dace9df 100644 --- a/customize.dist/template.js +++ b/customize.dist/template.js @@ -119,11 +119,21 @@ $(function () { if (isMainApp()) { if (typeof(Pages[pathname]) === 'function') { $('body').html(h('body', Pages[pathname]()).innerHTML); - setTimeout(function () { - require(['/whiteboard/main.js'], function () { - $('body').removeClass('noscroll'); + + if (/whiteboard/.test(pathname)) { + setTimeout(function () { + require(['/whiteboard/main.js'], function () { + $('body').removeClass('noscroll'); + }); + }); + } else if (/poll/.test(pathname)) { + setTimeout(function () { + require(['/poll/main.js'], function () { + $('body').removeClass('noscroll'); + console.log("TEMPLATE!"); + }); }); - }); + } return; } } diff --git a/www/poll/index.html b/www/poll/index.html index d2dac0dd0..a5572f7c7 100644 --- a/www/poll/index.html +++ b/www/poll/index.html @@ -9,48 +9,7 @@ data-main-favicon="/customize/main-favicon.png" data-alt-favicon="/customize/alt-favicon.png" id="favicon" /> - +
- -