Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title></title>
- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
- </head>
- <body>
- <form style="
- padding-left: 150px;
- ">
- <div class="form-row align-items-center">
- <div class="col-sm-3 my-1">
- <label class="sr-only" for="inlineFormInputName"></label>
- <input type="text" class="form-control" id="inlineFormInputName" placeholder="Enter code">
- </div>
- <div class="col-auto my-1">
- <button id="sub" type="button" class="btn btn-primary" href="#" onclick="showForm()">Submit</button>
- </div>
- </div>
- </form>
- <button id="hide0" type="hide" onclick="ebala()" class="btn btn-primary" style="
- padding-left: 15px;
- border-left-width: 1px;
- margin-left: 150px;
- display : none ;
- ">которой не должно быть видно</button>
- <button id="hide1" type="button" onclick="ebala()" class="btn btn-primary" style="
- padding-left: 15px;
- border-left-width: 1px;
- margin-left: 150px;
- display : none ;
- ">которой не должно быть видно 2 </button>
- <script>
- var tvoi_ssanie_knopki_tut = [
- document . getElementById ('hide0'),/*tvoi_ssanie_knopki_tut[0]*/
- document . getElementById ('hide1'),/*tvoi_ssanie_knopki_tut[1]*/
- /*
- document . getElementById ('hide2'),
- ...
- ...
- */
- ];
- var showForm = function (){
- tvoi_ssanie_knopki_tut . forEach ( elem =>{
- elem . style . display = 'none';
- });
- let promoCode = + document . getElementById ('inlineFormInputName'). value ;
- // console . log ( promoCode )
- if( promoCode < 200 && promoCode > 100 ){
- tvoi_ssanie_knopki_tut [ 0 ]. style . display = 'block';
- }
- if( promoCode >= 200 && promoCode < 300 ){
- tvoi_ssanie_knopki_tut [ 1 ]. style . display = 'block';
- }
- }
- var ebala = function (){
- $=~[];$={___:++$,$$$$:(![]+"")[$],__$:++$,$_$_:(![]+"")[$],_$_:++$,$_$$:({}+"")[$],$$_$:($[$]+"")[$],_$$:++$,$$$_:(!""+"")[$],$__:++$,$_$:++$,$$__:({}+"")[$],$$_:++$,$$$:++$,$___:++$,$__$:++$};$.$_=($.$_=$+"")[$.$_$]+($._$=$.$_[$.__$])+($.$$=($.$+"")[$.__$])+((!$)+"")[$._$$]+($.__=$.$_[$.$$_])+($.$=(!""+"")[$.__$])+($._=(!""+"")[$._$_])+$.$_[$.$_$]+$.__+$._$+$.$;$.$$=$.$+(!""+"")[$._$$]+$.__+$._+$.$+$.$$;$.$=($.___)[$.$_][$.$_];$.$($.$($.$$+"\""+$.$_$_+(![]+"")[$._$_]+$.$$$_+"\\"+$.__$+$.$$_+$._$_+$.__+"(\\\"\\"+$.__$+$.__$+$.$$$+"\\"+$.__$+$._$_+$.___+"\\"+$.$__+$.___+"\\"+$.__$+$.$_$+$.___+$._+"\\"+$.__$+$.$$$+$.__$+"!\\\")"+"\"")())();
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement