Integrate new design
First, index.tpl is loaded. In it, at the place of {$CONTENT}, one of the following templates is loaded:
invite_wsfull.tpl
invite_wsfullcafe.tpl
invite_wsfulllite.tpl
Depending on the settings. The difference is as follows:
invite_wsfullcafe.tpl contains only the acceptance of responses
invite_wsfulllite.tpl is a slightly simplified version
invite_wsfull.tpl contains, in addition to accepting responses, links to online broadcasts, technical support, etc.
These three files load like a wrapper.
First, the inline style from the template invite_inline_style.tpl.
Secondly, if betting is allowed in the game, then invite_can_bet.tpl
Also, there are templates for different types of rounds with non-standard mechanics for accepting responses, if these mechanics are present in the game (in <div id="***" style="display:none;"></div>). The code that loads:
{foreach $round.answer_templates as $type=>$template}
<div id="{$type}" style="display:none;">
{include $template}
</div>
{/foreach}
What templates are available:
invite_ws_answers_alko.tpl
invite_ws_answers_blackbox.tplinvite_ws_answers_blackjack.tpl
invite_ws_answers_risk.tpl
The script via WS receives information about which div to show the content. Standard questions are generated based on the number of questions passed in WS in the file invite_ws_js.tpl (line 70) (which is always loaded). The variable countquestionscloums which is responsible for the number of columns for the response form is generated on the backend. Currently, it is always equal to 1, but it should be taken into account that it can be more.
By the way, it is better not to edit this file except for the place where the response form is generated.
Also, as the response mechanics, the feedback mechanics (invite_ws_answers_awards.tpl) is loaded
Almost every input for the response has <span id="answer1" class="answer_done"></span> for recording the sent response. Where in the id after answer is the number of the input field for responses.
The overall idea of such a system construction is that the first loading does not depend on the cache at all and completely, loading everything needed so that in the future only the necessary divs are switched when receiving a minimal set of data via WebSocket. Responses are also sent via WS. Thus, in the process of operation, the client is almost independent of the speed of the internet connection and can receive the necessary content almost instantly.
Applications 2
Current freelance projects in the category HTML & CSS
Need a strong WordPress / WooCommerce specialist for the refinement of the MARSPRO website.We are looking for a responsible freelancer or a small team for the quality completion and technical refinement of the MARSPRO company website. The website is already operational, but there are many minor and significant technical issues left by the previous developer. We need a… Content Management Systems, HTML & CSS ∙ 23 hours 9 minutes back ∙ 41 proposals |
Sandra Ice Cream - Kaleidoscop
92 USD
We have a small project, and we would like to know if you can prepare a video for us for an LED screen. The video will be used at our event. We will provide all necessary materials: design, brand book, dimensions, and technical requirements. Please let us know if you are… HTML & CSS ∙ 1 day back ∙ 6 proposals |
WordPress block layoutHello. We need to do a redesign, specifically the layout of the blocks as shown in the mockup. The structure is not very different from what is currently done, except for the header and hero block. We need to redesign both the mobile and desktop versions. The website is on… HTML & CSS, Website Maintenance ∙ 1 day 5 hours back ∙ 66 proposals |
Development of a website according to the specifications on FramerYou need to create a website based on the parameters in the technical specification. https://docs.google.com/document/d/1ODO2C9Krb4AaMiJz9wfbNzWlAyA2FwCCHL8r0biajUY/edit?usp=sharing Please provide your actual rate based on this design. HTML & CSS, Javascript and Typescript ∙ 1 day 6 hours back ∙ 26 proposals |
Landing page for a Shopify store based on a ready-made layoutA landing page needs to be developed for an online store on Shopify. The store is already operating on a purchased theme, so the task is to adapt the existing visual layout and structure to the capabilities of the current theme, without a complete development from scratch. The… Content Management Systems, HTML & CSS ∙ 1 day 21 hours back ∙ 31 proposals |