{"id":345,"date":"2020-12-20T19:09:53","date_gmt":"2020-12-20T15:09:53","guid":{"rendered":"https:\/\/yellowweb.top\/?p=345"},"modified":"2026-05-05T20:40:05","modified_gmt":"2026-05-05T16:40:05","slug":"kak-zamenit-komandu-verstalshhikov-odnim-skriptom-gotovyj-nabor-dlya-povysheniya-konversii-prelendingov","status":"publish","type":"post","link":"https:\/\/yellowweb.top\/en\/kak-zamenit-komandu-verstalshhikov-odnim-skriptom-gotovyj-nabor-dlya-povysheniya-konversii-prelendingov\/","title":{"rendered":"Replace a Front-End Team with One Script"},"content":{"rendered":"<p class=\"wp-block-paragraph\">Hello, everyone. <strong>Yellow Web<\/strong> and today we're going to take a look at <a href=\"https:\/\/github.com\/dvygolov\/drewlex\" target=\"_blank\" rel=\"noreferrer noopener\">powerful script for your pads - <strong>Drewlex<\/strong><\/a>.<img decoding=\"async\" src=\"\">\u0421\u043e\u0437\u0434\u0430\u0442\u0435\u043b\u044c \u0441\u0435\u0433\u043e \u0447\u0443\u0434\u0430 \u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u0435\u043d, \u0441\u043a\u0440\u0438\u043f\u0442 \u0431\u044b\u043b \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d \u043c\u043d\u043e\u0439 \u0432 \u0441\u043f\u0430\u044f\u0445, \u0430 \u043f\u043e\u0442\u043e\u043c \u044f \u0443\u0432\u0438\u0434\u0435\u043b \u0435\u0433\u043e \u0432 \u043f\u0440\u043e\u043a\u043b\u0430\u0445 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0445 \u041f\u041f, \u0434\u043e\u043f\u0443\u0441\u043a\u0430\u044e, \u0447\u0442\u043e \u043e\u043d \u0441\u043e\u0437\u0434\u0430\u043d \u043a\u0435\u043c-\u0442\u043e \u0438\u0437 \u043e\u0442\u0434\u0435\u043b\u0430 \u0432\u0451\u0440\u0441\u0442\u043a\u0438 \u044d\u0442\u043e\u0439 \u041f\u041f, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0440\u0430\u0437\u043e\u0448\u0451\u043b\u0441\u044f \u043f\u043e \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430\u043c. \u0421\u0430\u043c \u0430\u0432\u0442\u043e\u0440 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0441\u0432\u043e\u0451 \u0442\u0432\u043e\u0440\u0435\u043d\u0438\u0435 \u0442\u0430\u043a: <\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>\"A radically new product that exceeds the performance potential of an entire stack of layout designers.\" <\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">Well, let's see if the functionality corresponds to such a loud statement!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Feature set<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The script was slightly finalized: I added to it all sorts of features to protect against copying, which, although it was declared, but was not implemented. Well, and <strong>basic <\/strong>the set of functions is as follows:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><strong>Blocking: <\/strong>context menu, save page, copy<\/li><li>Inserting dynamic dates:<ul><li>minus 10 days from the current day (usually used to indicate the date of the article)<\/li><li>For today's number<\/li><li>for comments<\/li><li>current year<\/li><\/ul><\/li><li>Facebook-style comments - likes, reposts, etc. buttons.<\/li><li>Scroll smoothly to the desired part of the page<\/li><li>Countdown timer<\/li><li>Slider for pictures<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">The script also has a number of <strong>advanced <\/strong>capabilities:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Roulette<\/li><li>Automatic comments<\/li><li>Pop-up bars to show that someone bought the product<\/li><li>Adding an order form<\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Connecting<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Let's deal with everything in order, starting with connecting the script to your pad:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Download the script itself and all additional files from GitHub, copy them to the folder of your pad, open the file <code>index.html<\/code> spacers and in it add somewhere in the tag <code>&lt;head&gt;<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em><code>&lt;script src='drewlex.js'&gt;&lt;\/script&gt;<\/code><\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Next, let's walk through the setup <strong>basic<\/strong> functions (you can take a peek: in the file <code>example.php<\/code> there is a ready-made setup example).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Enabling copy protection<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To enable protection inside a tag <code>&lt;head&gt;<\/code> writing:<br><br><em><code>&lt;script&gt;var mv_protect='on'&lt;\/script&gt;<\/code><br><br><\/em>After that the user will not be able to call the context menu, the key combination will be disabled <em>Ctrl+S<\/em> to save the page and you will lose the ability to highlight text.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Adding dynamic dates<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"> It's easy with dates - add the item to your proclu in the right place <em>div <\/em>or <em>span<\/em> and specify an appropriate class for them:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><em><code>&lt;div class=&quot;mv_mdate&quot;&gt;&lt;\/div&gt;<\/code><\/em> - for -10 days from the current date<\/li><li><em><code>&lt;div class=&quot;mv_tdate&quot;&gt;&lt;\/div&gt;<\/code><\/em> - for the current date<\/li><li><em><code>mv_rtdate<\/code><\/em> - for the date of comments. The trick is that if there is more than one comment, then each subsequent comment will have a larger date than the previous one:<br><img decoding=\"async\" src=\"\"><img decoding=\"async\" src=\"https:\/\/connect.affbooster.io\/uploads\/image\/image\/289\/size_1600_%D0%A1%D0%BA%D1%80%D0%B8%D0%BD%D1%88%D0%BE%D1%82_27-05-2020_185337.png\"><\/li><li><em><code>&lt;div class=&quot;mv_tyear&quot;&gt;&lt;\/div&gt;<\/code><\/em> - for the current year<\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Facebook-style comments<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To add a fb-style comment block, create a <em><code>&lt;div class=&quot;&rdquo;comments&rdquo;&quot;&gt;&lt;\/div&gt;<\/code><\/em><br>Inside it, add the necessary comments in the following form:<br><br><em><code><div class=\"comments-item\"><br><div class=\"comment-avatar\"><img src=\"Pathkave_user.jpg\" width=\"32\" height=\"32\"><\/div><br><div class=\"comment-text\"><br><span class=\"comment-username\">User name<\/span><br><\/div><br><div class=\"comment-action\"><br><span class=\"like\">Like<\/span><br><span class=\"reply\">Repost<\/span><br><span class=\"like-count\">0<\/span><br><span class=\"comment-date mv_rtdate\"><\/span><br><\/div><br><\/div><\/code><br><\/em><br>It will look like the previous screenshot above.<br>At the bottom of the comment block, you can add a form for the user to add a comment, and it will be added! It goes like this:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em><code><div>.<br><div class=\"input-action\"><\/div><br>Comment:<textarea class=\"textarea\"><\/textarea> <br><br>Name:<br><button class=\"send-btn\">Send<\/button><br><\/div><\/code><\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The appearance of such a form:<img decoding=\"async\" src=\"\"><img decoding=\"async\" src=\"https:\/\/connect.affbooster.io\/uploads\/image\/image\/290\/size_1600_%D0%A1%D0%BA%D1%80%D0%B8%D0%BD%D1%88%D0%BE%D1%82_27-05-2020_201206.png\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Smooth scrolling<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">With smooth scrolling it&#039;s very simple: add a link element (i.e. tag &lt;a&gt;) class .scrollto and a href with the idi of the element you want to scroll to. For example: <em><code>&lt;a href=&quot;\/en\/&rdquo;\/#orderform&rdquo;&quot; class=&quot;&rdquo;scrollto&rdquo;&quot;&gt;Buy&lt;\/a&gt;<\/code><\/em><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Timer<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Countdown timer is the most important thing for any website. To add it it's enough to create div with class mv_timer.<br><em><code>&lt;div class=&quot;&rdquo;mv_timer&rdquo;&quot;&gt;&lt;\/div&gt;<\/code><br><\/em>By default, the timer counts the time until the end of the current day.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Slider<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Slider - this is essentially a carousel, i.e. several pictures, between which you can switch with a swipe or mouse. It is added like this:<br>Creating multiple tags <em><code>&lt;div&gt;<\/code><\/em> tagged <em><code>&lt;img&gt;<\/code><\/em> inside, and then shove them all in <em><code>&lt;div class=&quot;&rdquo;owl-carousel&rdquo;&quot;&gt;<\/code><\/em> For example:<br><code><em><div class=\"owl-carousel\"><\/em><br><em><div><img src=\"1.jpg\" \/><\/div><br><div><img src=\"2.jpg\" \/><\/div><br><div><img src=\"3.jpg\" \/><\/div><br><\/div><\/em><\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We've got the basics sorted out and are gradually getting to the tastiest part, namely, the advanced functions of the script, which the author affectionately called \"Chips\": autocomments, popups, roulette, work with the form. Let's go!<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Advanced Features<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To turn on the \"tricks\", first we write in the right place of the page block <em><code>&lt;div class=&quot;features-wrapper&quot;&gt;&lt;\/div&gt;<\/code><\/em><br>I usually add this block after the main pad text and before the comments block.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Next, we need to make settings. In a few words about them:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The settings block consists of 3 basic (mandatory) parameters and 5 additional modules.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The main ones are responsible for language, product and gender (e.g. EROGAN is male, BELLINDA is female, and FITOSPRAY is all) all 3 must be listed!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Additional modules are responsible for installing on page forms, autocomments, popups and roulette in any combination: form - just form, roulette - just roulette, form + roulette = form pops up after roulette rotation. Modules contain a set of unique settings, allowing you to more accurately fit the feature to the page. Unnecessary modules can be removed from settings not to take up space.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Drum roll! settings block (insert anywhere on the page):<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>.<br>initFeatures({<br>lang : 'ru', \/\/list of available languages - vn,it,es,co,hr,en,de,fr,ph,cz,id,th,gr,bg,al,ro,sg,en_sg,mk,si,sk,lv,hu,pl,lt,pt<br>product : 'SPICE', \/\/product name<br>genderTargeting : 'all', \/\/ gender of the target audience - all, male, female<br><br>form : {<br>isNeeded : 1, \/\/ 1-include form, 0-off<br>img: '<a href=\"https:\/\/www.webrotate360.com\/campaigns\/360-product-view.gif\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.webrotate360.com\/campaigns\/360-product-view.gif<\/a>', \/\/ the path to the product picture<br>price : true, \/\/ price bar<br>priceBrFix : true, \/\/ fixes the display of prices in the price tag (true - removes line break)<br>showSelect : false, \/\/ show or hide select field<br>untilExpire : 600 \/\/ timer for the end of the action where 600 = 10min. Set it to 0 if you don't need it.<br>},<br><br>autoComments : {<br>isNeeded : 1, \/\/ 1-include auto-comments, 0-disable<br>bgColor : '#d7f2d8' \/\/ comment block background color<br>},<br><br>popups : {<br>isNeeded : 1, \/\/ 1-turn pops on, 0-turns off<br>bgColor: 'rgba(87, 86, 141, 0.8)', \/\/ message background color<br>textColor : '#fff', \/\/ the color of the main text of the message<br>emphColor : 'cyan', \/\/ the color of the highlighting in messages (for example, 'XX% discount', '' )<br>blackIcons : false \/\/ black or white icons, values true or false<br>},<br><br>wheel : {<br>isNeeded : 1, \/\/ 1-include wheel, 0-off<br>customWheel : false \/\/ reference to your wheel, or false<br>}<br>});<br>&lt;\/script&gt;<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In general, it is clear from the comments in the code what is responsible for what, but how can it all be applied? Easy. We specified such language, product name and gender of the audience and enabled, say, auto-commenting. And we have a new comment starting to appear on the page from time to time (from <strong>a large database embedded in the script in advance<\/strong>!) in the right language (!) from people of the right gender!<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/connect.affbooster.io\/uploads\/image\/image\/291\/size_1600_%D0%A1%D0%BA%D1%80%D0%B8%D0%BD%D1%88%D0%BE%D1%82_27-05-2020_210101.png\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">It's the same with popups.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/connect.affbooster.io\/uploads\/image\/image\/292\/size_1600_%D0%A1%D0%BA%D1%80%D0%B8%D0%BD%D1%88%D0%BE%D1%82_27-05-2020_210031.png\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">And for dessert - roulette. After the roulette has scrolled and we \"won\" something, it is possible to show a picture of the product (it should be put in the img folder and named product.png) along with the order form + under the picture, if necessary, there will also be a timer:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/connect.affbooster.io\/uploads\/image\/image\/293\/size_1600_%D0%A1%D0%BA%D1%80%D0%B8%D0%BD%D1%88%D0%BE%D1%82_27-05-2020_210411.png\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If you need to insert additional fields into this form (for example, subs), see how it is done in example.php - the variable <em>formApiCode<\/em>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I don't know about you, but I'm really impressed with the capabilities of the script, I give the author 10 out of 10 layout. Plug yourself in, figure out the features, increase the conversion!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thank you for reading, and with you was <strong>Yellow Web<\/strong>, get on the plus side, gentlemen!<\/p>\n\n\n<section class=\"ywb-related-reading\" aria-label=\"What to read next\">\r\n        <div class=\"ywb-related-reading__inner\">\r\n            <h2 class=\"ywb-related-reading__title\">What to read next<\/h2>\n            <p class=\"ywb-related-reading__hub-note\">\n                <a class=\"ywb-related-reading__hub-link\" href=\"https:\/\/yellowweb.top\/en\/en\/poleznye-materialy-po-arbitrazhu-trafika\/#hub-tech\">Open the full traffic arbitrage hub \u2192<\/a>\n            <\/p>\n            <div class=\"ywb-related-reading__grid\">\r\n                                                        <a class=\"ywb-related-reading__card\" href=\"https:\/\/yellowweb.top\/en\/en\/skript-callbacker-dlya-vashih-lendingov\/\">\n                        <span class=\"ywb-related-reading__card-title\">Callbacker Script for Your Landing Pages<\/span>\n                        <span class=\"ywb-related-reading__card-text\">Callbacker \u043a\u0430\u043a \u0447\u0430\u0441\u0442\u044c \u043d\u0430\u0431\u043e\u0440\u0430 \u043a\u043e\u043d\u0432\u0435\u0440\u0441\u0438\u043e\u043d\u043d\u044b\u0445 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432.<\/span>\n                    <\/a>\n                                                        <a class=\"ywb-related-reading__card\" href=\"https:\/\/yellowweb.top\/en\/en\/skript-comebacker\/\">\n                        <span class=\"ywb-related-reading__card-title\">Comebacker Script<\/span>\n                        <span class=\"ywb-related-reading__card-text\">Comebacker \u0434\u043b\u044f \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430 \u0443\u0445\u043e\u0434\u044f\u0449\u0435\u0433\u043e \u0442\u0440\u0430\u0444\u0438\u043a\u0430.<\/span>\n                    <\/a>\n                                                        <a class=\"ywb-related-reading__card\" href=\"https:\/\/yellowweb.top\/en\/en\/11-fishek-dlya-lendingov-kotorye-mozhno-sdelat-pryamo-sejchas-chtoby-uvelichit-svoj-profit\/\">\n                        <span class=\"ywb-related-reading__card-title\">11 Landing Page Tweaks You Can Implement Right Now to Increase Profit<\/span>\n                        <span class=\"ywb-related-reading__card-text\">\u0413\u0434\u0435 \u044d\u0442\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u043b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u043d\u0430 \u043b\u0435\u043d\u0434\u0438\u043d\u0433\u0430\u0445.<\/span>\n                    <\/a>\n                            <\/div>\r\n        <\/div>\r\n    <\/section>","protected":false},"excerpt":{"rendered":"<p>A ready-made script toolkit for improving prelander conversion without rebuilding the entire production process from scratch.<\/p>","protected":false},"author":2,"featured_media":347,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[20,14],"tags":[],"class_list":["post-345","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-scripts","category-facebook"],"_links":{"self":[{"href":"https:\/\/yellowweb.top\/en\/wp-json\/wp\/v2\/posts\/345","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yellowweb.top\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yellowweb.top\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yellowweb.top\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/yellowweb.top\/en\/wp-json\/wp\/v2\/comments?post=345"}],"version-history":[{"count":5,"href":"https:\/\/yellowweb.top\/en\/wp-json\/wp\/v2\/posts\/345\/revisions"}],"predecessor-version":[{"id":1763,"href":"https:\/\/yellowweb.top\/en\/wp-json\/wp\/v2\/posts\/345\/revisions\/1763"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/yellowweb.top\/en\/wp-json\/wp\/v2\/media\/347"}],"wp:attachment":[{"href":"https:\/\/yellowweb.top\/en\/wp-json\/wp\/v2\/media?parent=345"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yellowweb.top\/en\/wp-json\/wp\/v2\/categories?post=345"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yellowweb.top\/en\/wp-json\/wp\/v2\/tags?post=345"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}