Posts

Showing posts with the label HTML

Image Gallery Codepen

HTML Code width JQuery Script <!--<div class="wrapper">   <div class="images">     <img src="https://source.unsplash.com/1600x900/?rainforest" />     <img src="https://source.unsplash.com/1600x900/?trees" />     <img src="https://source.unsplash.com/1600x900/?rocks" />     <img src="https://source.unsplash.com/1600x900/?mountains" />     <img src="https://source.unsplash.com/1600x900/?water" />     <img src="https://source.unsplash.com/1600x900/?nature" />   </div>   <div class="text">     <p>Click the images.</p>   </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script type="text/javascript">   $(".images img").click(function () {   $(this).addClass("zoom"); }); $(".images img").mouseleave...

Display Search on Button Click with Animation

  HTML  <button id="search_button" onclick="search_display()"><i class="fas fa-search"></i></button>        <div id="search"><input type="text" name="search_bar" id="search_bar" placeholder="Search.."><button id="search_button1"><i class="fas fa-search"></i></button></div> CSS #search_button,#search_button1 {   float: right;   width: 4vw;   height: 8vh;   border: none;   background: #fedd02;  }  #search_button:hover,#search_button1:hover {   color: white;  } #search {   display: none;   position: fixed;   top: 6.5vh;   right: 11.8vw;  }  #search_bar {   width: 20vw;   height: 8vh;   background: #000000;   color: #FFFFFF;   animation: 1s fade ease;  }  @keyframes fade {   from {     width: 0;   }   to{     width: 20vw;   } }  #se...

Event Calendar

Event Calendar HTML, CSS and JS

Font Size in rem and Making Responsive

Image
 1 rem = Font-size of the root html element Default 1rem = 16px To change font-size of html element -> Put in %(1rem=100%) And put font-size in media-query -> in % (accordingly)

Testimonial Slider

HTML    <!--   #### EDIT   I built this slider when I first started to learn JS, you can rebuild it with more readable, simple and less code, I'm too lazy to update it, sorry :)   -->   <!--     -->  <!-- <section id="testim" class="testim">           <div class="testim-cover">                <div class="wrap">                   <span id="right-arrow" class="arrow right fa fa-chevron-right"></span>                   <span id="left-arrow" class="arrow left fa fa-chevron-left "></span>                   <ul id="testim-dots" class="dots">                       <li class="dot active"></li>         ...

Text Editor

Text Editor                <div class="form-group">                    <label for="title" class="col-sm-3 control-label">Event Details</label>                    <div class="col-sm-9">                        <textarea id="details" name="details" class="summernote">{{isset($event->details)?$event->details:null}}</textarea>                    </div>                </div> <script type="text/javascript">     $('.summernote').summernote({       airMode: true       }); </script> The Data from this Text Editor- SAVED WITH TAGS - into Database Table To display data on page without tags - strip_tags() Funct...

CDN Links

Bootstrap CDN <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous"> <script src= "https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity= "sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin= "anonymous" ></script> <script src= "https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity= "sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin= "anonymous" ></script> <script src= "https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity= "sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin= "anonymous" ></script...