<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3630068095685918406</id><updated>2024-12-19T10:31:52.918+07:00</updated><category term="PHP"/><category term="css"/><category term="jQuery"/><category term="Bootstrap"/><category term="HTML"/><category term="CRUD"/><category term="AMP"/><category term="Wordpress"/><category term="htaccess"/><category term="Carosel"/><category term="MAP"/><category term="Mysql"/><category term="Slider"/><title type='text'>Tutorial Website | Tutorial PHP &amp;amp; MYSQL | Boostsrap | Ajax Javascript</title><subtitle type='html'>Tutorial Website Blog yang berisi Tutorial yang berkaitan dengan pengembangan website. Pembahasan utama kami PHP &amp;amp; MYSQL, AJAX, Framework, Javascript, Bootstrap yang kami Buat sesederhana mungkin agar mudah di pahami Kami Selalu Update Diakhir Pekan.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://lacodeid.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='https://lacodeid.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Lacode</name><uri>http://www.blogger.com/profile/15545994188230698518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>46</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3630068095685918406.post-7430895863846653360</id><published>2020-09-09T13:24:00.000+07:00</published><updated>2020-09-09T13:24:24.333+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Bootstrap"/><category scheme="http://www.blogger.com/atom/ns#" term="jQuery"/><title type='text'>Membuat popup dengan time javascript bootstrap</title><content type='html'>Selamat datang kembali diwebsite writecode ditutorial kali ini writecode akan berbagi sedikit ilmu Membuat popup dengan time Javascript Bootstrap lasung saja tanpa basa basi silakan copas koding dibawah ini :&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt;&lt;span style=&quot;color: #47535b; font-family: monospace, monospace;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;
&amp;lt;html&amp;gt;
    &amp;lt;head&amp;gt;
        &amp;lt;title&amp;gt;Latihan Modal | Bootstrap&amp;lt;/title&amp;gt;
        &amp;lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&amp;gt;
        &amp;lt;!-- Bootstrap --&amp;gt;
        &amp;lt;link href=&quot;css/bootstrap.min.css&quot; rel=&quot;stylesheet&quot;&amp;gt;&amp;lt;/head&amp;gt;
    &amp;lt;body&amp;gt;
&amp;lt;div class=&quot;container&quot;&amp;gt;      
    &amp;lt;center&amp;gt;&amp;lt;h1&amp;gt;Membuat Modal dengan Bootstrap&amp;lt;/h1&amp;gt;
        &amp;lt;!-- Tombol untuk menampilkan modal--&amp;gt;
        &amp;lt;button type=&quot;button&quot; class=&quot;btn btn-info btn-lg&quot; 
        data-toggle=&quot;modal&quot; data-target=&quot;#myModal&quot;&amp;gt;Buka Modal&amp;lt;/button&amp;gt;
        &amp;lt;h1&amp;gt;TutorialPedia.NET&amp;lt;/h1&amp;gt;
    &amp;lt;/center&amp;gt;

    &amp;lt;!-- Modal --&amp;gt;

    &amp;lt;div id=&quot;myModal&quot; class=&quot;modal fade&quot; role=&quot;dialog&quot;&amp;gt;
        &amp;lt;div class=&quot;modal-dialog&quot;&amp;gt;
            &amp;lt;!-- konten modal--&amp;gt;
            &amp;lt;div class=&quot;modal-content&quot;&amp;gt;
                &amp;lt;!-- heading modal --&amp;gt;
                &amp;lt;div class=&quot;modal-header&quot;&amp;gt;
                    &amp;lt;button type=&quot;button&quot; class=&quot;close&quot; data-dismiss=&quot;modal&quot;&amp;gt;
                    &amp;amp;times;&amp;lt;/button&amp;gt;
                    &amp;lt;h4 class=&quot;modal-title&quot;&amp;gt;Bagian heading modal&amp;lt;/h4&amp;gt;
                &amp;lt;/div&amp;gt;
                &amp;lt;!-- body modal --&amp;gt;
                &amp;lt;div class=&quot;modal-body&quot;&amp;gt;
                    &amp;lt;p&amp;gt;bagian body modal.&amp;lt;/p&amp;gt;
                &amp;lt;/div&amp;gt;
                &amp;lt;!-- footer modal --&amp;gt;
                &amp;lt;div class=&quot;modal-footer&quot;&amp;gt;
                    &amp;lt;button type=&quot;button&quot; class=&quot;btn btn-default&quot; 
                     data-dismiss=&quot;modal&quot;&amp;gt;
                    Tutup Modal&amp;lt;/button&amp;gt;
                &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
   &amp;lt;/div&amp;gt;        

    &amp;lt;script src=&quot;https://code.jquery.com/jquery.js&quot;&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script src=&quot;js/bootstrap.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script&amp;gt;
      // angka 500 dibawah ini artinya pesan akan muncul dalam 0,5 detik setelah document ready
        $(document).ready(function(){
          setTimeout(function(){
            $(&#39;#myModal&#39;).modal(&#39;show&#39;);
          }, 500);
        });
      // angka 3000 dibawah ini artinya pesan akan hilang dalam 3 detik setelah muncul
      setTimeout(function(){
        $(&#39;#myModal&#39;).modal(&#39;hide&#39;);
      }, 3000);
    &amp;lt;/script&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
Bisa anda perhatikan script dibawah ini , koding inilah nantinya yang akan menampilakan popup berdasarkan time sesuai dengan waktu yang ditentukan oleh agan sendiri mau berapa lama waktu munculnya.&lt;br /&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt;&amp;lt;script&amp;gt;
      // angka 500 dibawah ini artinya pesan akan muncul dalam 0,5 detik setelah document ready
        $(document).ready(function(){
          setTimeout(function(){
            $(&#39;#myModal&#39;).modal(&#39;show&#39;);
          }, 500);
        });
      // angka 3000 dibawah ini artinya pesan akan hilang dalam 3 detik setelah muncul
      setTimeout(function(){
        $(&#39;#myModal&#39;).modal(&#39;hide&#39;);
      }, 3000);
&amp;lt;/script&amp;gt;&lt;/pre&gt;
Sekian tutorial singakat writecode cara&amp;nbsp;Membuat popup dengan time javascript bootstrap semoga bermanfaat.</content><link rel='replies' type='application/atom+xml' href='https://lacodeid.blogspot.com/feeds/7430895863846653360/comments/default' title='Posting Komentar'/><link rel='replies' type='text/html' href='https://lacodeid.blogspot.com/2018/02/membuat-popup-dengan-time-javascript.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/7430895863846653360'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/7430895863846653360'/><link rel='alternate' type='text/html' href='https://lacodeid.blogspot.com/2018/02/membuat-popup-dengan-time-javascript.html' title='Membuat popup dengan time javascript bootstrap'/><author><name>Lacode</name><uri>http://www.blogger.com/profile/15545994188230698518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total><georss:featurename>Jakarta, Indonesia</georss:featurename><georss:point>-6.17511 106.86503949999997</georss:point><georss:box>-8.1968405 104.28325249999996 -4.1533795 109.44682649999997</georss:box></entry><entry><id>tag:blogger.com,1999:blog-3630068095685918406.post-7068786979193058728</id><published>2020-09-09T13:23:00.004+07:00</published><updated>2020-09-23T18:49:33.158+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="jQuery"/><title type='text'>Cara menampilkan data json ke dalam datatables menggunakan jquery</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOoN6McM61kUzCJVZVEFLPzKcK51hs4ncNrxWKr29lQkwA84IfWTSIMFgVKA2nIzn0E_zszM-YdCCTiXf3ClgceWm9dSwO0uCPgk7x51s6BjkES09OG7wXTaSB6kczk8mgNKSiuBNE4Qw/s1600/lacodeid.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;900&quot; data-original-width=&quot;1600&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOoN6McM61kUzCJVZVEFLPzKcK51hs4ncNrxWKr29lQkwA84IfWTSIMFgVKA2nIzn0E_zszM-YdCCTiXf3ClgceWm9dSwO0uCPgk7x51s6BjkES09OG7wXTaSB6kczk8mgNKSiuBNE4Qw/s640/lacodeid.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;a href=&quot;https://stories.web.id/&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;Stories adalah blog Menulis Artikel dan Sambung cerita bersama teman.&lt;/b&gt;&lt;/a&gt;&lt;/div&gt;


 
  
&lt;p&gt;Dalam posting ini saya akan menunjukkan &lt;a href=&quot;https://stories.web.id/redirect?c=C6Z8yCn&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;Cara untuk mengambil data JSON&lt;/b&gt;&lt;/a&gt; dari file dan tampilan di JQuery Datatables. Format data JSON adalah format data yang sangat ringan untuk menyimpan data. Apakah Anda tahu apa itu JQuery Datatables, ini adalah plugin JQuery untuk menampilkan data dalam format Tabel.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Dengan menggunakan plugin JQuery ini Anda tidak hanya bisa menampilkan data dalam tabel juga tapi juga menyediakan fetures lain seperti data pencarian dari data html, Anda dapat mengontrol berapa banyak record yang ingin Anda tampilkan pada satu halaman, namun juga menyediakan fitur seperti data tampilan dalam ascending. atau urutan menurun dan juga menyediakan pagination. Caranya sangat simple silakan anda ikuti langkah2 dibawah ini :&lt;/p&gt;&lt;p&gt;&lt;b&gt;Baca juga :&amp;nbsp;&lt;a href=&quot;https://lacodeid.blogspot.com/2017/10/cara-membuat-shoping-cart-php-mysql.html&quot;&gt;Cara membuat Shoping Cart PHP Mysql&lt;/a&gt;&lt;/b&gt;&lt;/p&gt;
Buat file &lt;b&gt;index.php&lt;/b&gt; script kode :&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: whitesmoke; border-radius: 2px; border: 1px solid rgba(0, 0, 0, 0.15); line-height: 20px; margin-bottom: 10px; overflow-wrap: break-word; overflow: auto; padding: 9.5px; word-break: break-all;&quot;&gt;&lt;span style=&quot;font-size: 12px; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: monaco, menlo, consolas, &amp;quot;courier new&amp;quot;, monospace;&quot;&gt;&amp;lt;!DOCTYPE html&amp;gt;  
 &amp;lt;html&amp;gt;  
      &amp;lt;head&amp;gt;  
           &amp;lt;title&amp;gt;Show JSON Data in Jquery Datatables&amp;lt;/title&amp;gt;  
           &amp;lt;link rel=&quot;stylesheet&quot; href=&quot;https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css&quot; /&amp;gt;  
           &amp;lt;script src=&quot;https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;  
           &amp;lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;  
           &amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;https://cdn.datatables.net/r/bs-3.3.5/jq-2.1.4,dt-1.10.8/datatables.min.css&quot;/&amp;gt;  
           &amp;lt;script type=&quot;text/javascript&quot; src=&quot;https://cdn.datatables.net/r/bs-3.3.5/jqc-1.11.3,dt-1.10.8/datatables.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;  
      &amp;lt;/head&amp;gt;  
      &amp;lt;body&amp;gt;  
           &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;  
           &amp;lt;div class=&quot;container&quot;&amp;gt;  
                &amp;lt;h1 align=&quot;center&quot;&amp;gt;Show JSON Data in Jquery Datatables&amp;lt;/h3&amp;gt;&amp;lt;br /&amp;gt;  
                &amp;lt;h3 align=&quot;center&quot;&amp;gt;Employee Database&amp;lt;/h3&amp;gt;&amp;lt;br /&amp;gt;  
                &amp;lt;table id=&quot;data-table&quot; class=&quot;table table-bordered&quot;&amp;gt;  
                     &amp;lt;thead&amp;gt;  
                          &amp;lt;tr&amp;gt;  
                               &amp;lt;th&amp;gt;Name&amp;lt;/th&amp;gt;  
                               &amp;lt;th&amp;gt;Gender&amp;lt;/th&amp;gt;  
                               &amp;lt;th&amp;gt;Designation&amp;lt;/th&amp;gt;  
                          &amp;lt;/tr&amp;gt;  
                     &amp;lt;/thead&amp;gt;  
                &amp;lt;/table&amp;gt;  
           &amp;lt;/div&amp;gt; 

           &amp;lt;!-- script --&amp;gt;
           &amp;lt;script&amp;gt;  
   $(document).ready(function(){  
      $(&#39;#data-table&#39;).DataTable({  
          &quot;ajax&quot; : &quot;employee_data.json&quot;,  
          &quot;columns&quot;     :     [  
               { &quot;data&quot; : &quot;name&quot;     },  
               { &quot;data&quot; : &quot;gender&quot;},  
               { &quot;data&quot; : &quot;designation&quot;}  
          ]  
      });  
   });  
   &amp;lt;/script&amp;gt;   
      &amp;lt;/body&amp;gt;  
 &amp;lt;/html&amp;gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: monaco, menlo, consolas, &amp;quot;courier new&amp;quot;, monospace; font-size: 13px; white-space: pre-wrap;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;div&gt;
sekarang buat satu file &lt;i&gt;employee_data.json&amp;nbsp;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
Baca Juga :&amp;nbsp;&lt;a href=&quot;https://lacodeid.blogspot.co.id/2018/02/membuat-editor-css-dengan-textarea.html&quot; rel=&quot;nofollow&quot;&gt;Membuat Editor CSS dengan Textarea&lt;/a&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;
&lt;pre style=&quot;background-color: whitesmoke; border-radius: 2px; border: 1px solid rgba(0, 0, 0, 0.15); color: #333333; font-family: monaco, menlo, consolas, &amp;quot;courier new&amp;quot;, monospace; font-size: 13px; line-height: 20px; margin-bottom: 10px; overflow-wrap: break-word; overflow: auto; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;&lt;code style=&quot;background-color: transparent; border-radius: 2px; border: 0px; color: inherit; font-family: monaco, menlo, consolas, &amp;quot;courier new&amp;quot;, monospace; font-size: 12px; padding: 0px;&quot;&gt;{  
      &quot;data&quot;     :     [  
           {  
                &quot;name&quot;: &quot;Michael Bruce&quot;,  
                &quot;gender&quot;: &quot;Male&quot;,  
                &quot;designation&quot;: &quot;System Architect&quot;  
           },  
           {  
                &quot;name&quot;: &quot;Jennifer Winters&quot;,  
                &quot;gender&quot;: &quot;Female&quot;,  
                &quot;designation&quot;: &quot;Senior Programmer&quot;  
           },  
           {  
                &quot;name&quot;: &quot;Donna Fox&quot;,  
                &quot;gender&quot;: &quot;Female&quot;,  
                &quot;designation&quot;: &quot;Office Manager&quot;  
           },  
           {  
                &quot;name&quot;: &quot;Cynthia E. Folmar&quot;,  
                &quot;gender&quot;: &quot;Female&quot;,  
                &quot;designation&quot;: &quot;Pharmacy technician&quot;  
           },  
           {  
                &quot;name&quot;: &quot;Charles E. Drexler&quot;,  
                &quot;gender&quot;: &quot;Male&quot;,  
                &quot;designation&quot;: &quot;Pamphlet binding worker&quot;  
           },  
           {  
                &quot;name&quot;: &quot;Andre F. Morris&quot;,  
                &quot;gender&quot;: &quot;Male&quot;,  
                &quot;designation&quot;: &quot;Respiratory therapy technician&quot;  
           },  
           {  
                &quot;name&quot;: &quot;James P. Baumgartner&quot;,  
                &quot;gender&quot;: &quot;Male&quot;,  
                &quot;designation&quot;: &quot;Diesel mechanic&quot;  
           },  
           {  
                &quot;name&quot;: &quot;Harold E. Welter&quot;,  
                &quot;gender&quot;: &quot;Male&quot;,  
                &quot;designation&quot;: &quot;Cooling and freezing equipment operator&quot;  
           },  
           {  
                &quot;name&quot;: &quot;Antionette J. Ellard&quot;,  
                &quot;gender&quot;: &quot;Female&quot;,  
                &quot;designation&quot;: &quot;Power plant distributor&quot;  
           },  
           {  
                &quot;name&quot;: &quot;Edith C. Hughes&quot;,  
                &quot;gender&quot;: &quot;Female&quot;,  
                &quot;designation&quot;: &quot;Record clerk&quot;  
           },  
           {  
                &quot;name&quot;: &quot;Mary R. Johnson&quot;,  
                &quot;gender&quot;: &quot;Female&quot;,  
                &quot;designation&quot;: &quot;Direct care worker&quot;  
           },  
           {  
                &quot;name&quot;: &quot;Christina R. Belin&quot;,  
                &quot;gender&quot;: &quot;Female&quot;,  
                &quot;designation&quot;: &quot;Cost engineer&quot;  
           },  
           {  
                &quot;name&quot;: &quot;Edith J. Ochoa&quot;,  
                &quot;gender&quot;: &quot;Female&quot;,  
                &quot;designation&quot;: &quot;Gastroenterologist&quot;  
           },  
           {  
                &quot;name&quot;: &quot;Elizbeth R. Thornton&quot;,  
                &quot;gender&quot;: &quot;Female&quot;,  
                &quot;designation&quot;: &quot;Public relations consultant&quot;  
           },  
           {  
                &quot;name&quot;: &quot;Barbara W. Ibarra&quot;,  
                &quot;gender&quot;: &quot;Female&quot;,  
                &quot;designation&quot;: &quot;Regional geographer&quot;  
           },  
           {  
                &quot;name&quot;: &quot;Art D. Steiner&quot;,  
                &quot;gender&quot;: &quot;Male&quot;,  
                &quot;designation&quot;: &quot;Camp director&quot;  
           },  
           {  
                &quot;name&quot;: &quot;Dorothy C. Downs&quot;,  
                &quot;gender&quot;: &quot;Female&quot;,  
                &quot;designation&quot;: &quot;Conference interpreter&quot;  
           },  
           {  
                &quot;name&quot;: &quot;Francisca J. Healy&quot;,  
                &quot;gender&quot;: &quot;Female&quot;,  
                &quot;designation&quot;: &quot;Stereotyper&quot;  
           },  
           {  
                &quot;name&quot;: &quot;Janice J. Luton&quot;,  
                &quot;gender&quot;: &quot;Female&quot;,  
                &quot;designation&quot;: &quot;Quality control technician&quot;  
           },  
           {  
                &quot;name&quot;: &quot;Jeanetta M. Brown&quot;,  
                &quot;gender&quot;: &quot;Female&quot;,  
                &quot;designation&quot;: &quot;Machine feeder&quot;  
           },  
           {  
                &quot;name&quot;: &quot;Susan P. Nazario&quot;,  
                &quot;gender&quot;: &quot;Female&quot;,  
                &quot;designation&quot;: &quot;Process metallurgical engineer&quot;  
           },  
           {  
                &quot;name&quot;: &quot;Antonia K. Vogl&quot;,  
                &quot;gender&quot;: &quot;Female&quot;,  
                &quot;designation&quot;: &quot;Psychiatrist&quot;  
           },  
           {  
                &quot;name&quot;: &quot;Cheryl P. Mahn&quot;,  
                &quot;gender&quot;: &quot;Female&quot;,  
                &quot;designation&quot;: &quot;Credit manager&quot;  
           },  
           {  
                &quot;name&quot;: &quot;Stephen E. Lynn&quot;,  
                &quot;gender&quot;: &quot;Male&quot;,  
                &quot;designation&quot;: &quot;Golf course architect&quot;  
           },  
           {  
                &quot;name&quot;: &quot;Michael M. Rodriguez&quot;,  
                &quot;gender&quot;: &quot;Male&quot;,  
                &quot;designation&quot;: &quot;Psychologist&quot;  
           },  
           {  
                &quot;name&quot;: &quot;Elsie D. Jones&quot;,  
                &quot;gender&quot;: &quot;Female&quot;,  
                &quot;designation&quot;: &quot;Research psychologist&quot;  
           },  
           {  
                &quot;name&quot;: &quot;Jeremy J. Underwood&quot;,  
                &quot;gender&quot;: &quot;Male&quot;,  
                &quot;designation&quot;: &quot;Commentator&quot;  
           },  
           {  
                &quot;name&quot;: &quot;Brenda J. Fowler&quot;,  
                &quot;gender&quot;: &quot;Female&quot;,  
                &quot;designation&quot;: &quot;Radio equipment installer&quot;  
           },  
           {  
                &quot;name&quot;: &quot;Mollie S. Castillo&quot;,  
                &quot;gender&quot;: &quot;Female&quot;,  
                &quot;designation&quot;: &quot;Information processing worker&quot;  
           },  
           {  
                &quot;name&quot;: &quot;Carol T. McDill&quot;,  
                &quot;gender&quot;: &quot;Female&quot;,  
                &quot;designation&quot;: &quot;Power distributor&quot;  
           },  
           {  
                &quot;name&quot;: &quot;Darlene P. Allen&quot;,  
                &quot;gender&quot;: &quot;Female&quot;,  
                &quot;designation&quot;: &quot;Industrial production manager&quot;  
           }  
      ]  
 }  &lt;/code&gt;&lt;/pre&gt;
Silakan di praktekan di media belajar anda.&lt;br /&gt;
Baca juga :&amp;nbsp;&lt;a href=&quot;https://lacodeid.blogspot.com/2017/10/ajax-add-delete-record-with-jquery-fade.html&quot; rel=&quot;nofollow&quot;&gt;Ajax add &amp;amp; delete a Record with jQuery&lt;/a&gt;&amp;nbsp;dan &lt;a href=&quot;http://lacodeid.blogspot.com/2017/10/load-more-dengan-ajax-jquery-php-mysqli.html&quot; rel=&quot;nofollow&quot;&gt;Load More Ajax Jquery&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://lacodeid.blogspot.com/feeds/7068786979193058728/comments/default' title='Posting Komentar'/><link rel='replies' type='text/html' href='https://lacodeid.blogspot.com/2017/10/show-data-json-in-datatables-with-jquery.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/7068786979193058728'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/7068786979193058728'/><link rel='alternate' type='text/html' href='https://lacodeid.blogspot.com/2017/10/show-data-json-in-datatables-with-jquery.html' title='Cara menampilkan data json ke dalam datatables menggunakan jquery'/><author><name>Lacode</name><uri>http://www.blogger.com/profile/15545994188230698518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOoN6McM61kUzCJVZVEFLPzKcK51hs4ncNrxWKr29lQkwA84IfWTSIMFgVKA2nIzn0E_zszM-YdCCTiXf3ClgceWm9dSwO0uCPgk7x51s6BjkES09OG7wXTaSB6kczk8mgNKSiuBNE4Qw/s72-c/lacodeid.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3630068095685918406.post-6407249268829173462</id><published>2020-09-09T13:19:00.005+07:00</published><updated>2020-09-13T11:15:49.753+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>Cara membuat Shoping Cart PHP Mysql</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Jika Anda ingin mencari tutorial cara membuat keranjang belanja dengan PHP MYSQL ? berikut langkah demi langkah pembuatan keranjang belanja. Di posting ini kita akan belajar bagaimana &lt;a href=&quot;https://lacodeid.blogspot.com/2017/10/cara-membuat-shoping-cart-php-mysql.html&quot;&gt;Cara membuat Shoping Cart PHP MYSQL&lt;/a&gt;. Disini akan menjelaskan bagaimana cara menampilkan daftar produk dari database MySql.&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Di setiap produk display kami telah memberikan pilihan untuk memasukkan jumlah barang dan menambahkan item ke keranjang belanja dan item keranjang belanja tersebut akan disimpan ke dalam variabel sesi dan jika Anda ingin menghapus item dari keranjang belanja, Anda dapat menghapus variabel sesi dan dapat menghapusnya.&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;barang dari keranjang belanja Saya telah menggunakan kode php inti yang sangat sederhana untuk membuat keranjang belanja sederhana ini dengan menggunakan metode get and post php.&lt;/div&gt;
&lt;br /&gt;&lt;b&gt;&lt;a href=&quot;https://stories.web.id&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Stories adalah blog Menulis Artikel dan Sambung cerita bersama teman.&lt;/a&gt;&amp;nbsp;&lt;/b&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Sebelum masuk ke script kode silakan buat tabel seperti dibawah ini :&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;CREATE TABLE IF NOT EXISTS `tbl_product` (  
  `id` int(11) NOT NULL AUTO_INCREMENT,  
  `name` varchar(255) NOT NULL,  
  `image` varchar(255) NOT NULL,  
  `price` double(10,2) NOT NULL,  
  PRIMARY KEY (`id`)  
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;  &lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
sekarang buat file&lt;i&gt; index.php&lt;/i&gt; script kode :&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;?php   
 session_start();  
 $connect = mysqli_connect(&quot;localhost&quot;, &quot;root&quot;, &quot;password&quot;, &quot;database&quot;);  
 if(isset($_POST[&quot;add_to_cart&quot;]))  
 {  
      if(isset($_SESSION[&quot;shopping_cart&quot;]))  
      {  
           $item_array_id = array_column($_SESSION[&quot;shopping_cart&quot;], &quot;item_id&quot;);  
           if(!in_array($_GET[&quot;id&quot;], $item_array_id))  
           {  
                $count = count($_SESSION[&quot;shopping_cart&quot;]);  
                $item_array = array(  
                    &#39;item_id&#39; =&amp;gt; $_GET[&quot;id&quot;],  
                    &#39;item_name&#39; =&amp;gt; $_POST[&quot;hidden_name&quot;],  
                    &#39;item_price&#39; =&amp;gt; $_POST[&quot;hidden_price&quot;],  
                    &#39;item_quantity&#39; =&amp;gt; $_POST[&quot;quantity&quot;]  
                );  
                $_SESSION[&quot;shopping_cart&quot;][$count] = $item_array;  
           }  
           else  
           {  
                echo &#39;&amp;lt;script&amp;gt;alert(&quot;Item Already Added&quot;)&amp;lt;/script&amp;gt;&#39;;  
                echo &#39;&amp;lt;script&amp;gt;window.location=&quot;index.php&quot;&amp;lt;/script&amp;gt;&#39;;  
           }  
      }  
      else  
      {  
           $item_array = array(  
                &#39;item_id&#39;=&amp;gt; $_GET[&quot;id&quot;],  
                &#39;item_name&#39;=&amp;gt; $_POST[&quot;hidden_name&quot;],  
                &#39;item_price&#39;=&amp;gt; $_POST[&quot;hidden_price&quot;],  
                &#39;item_quantity&#39;=&amp;gt; $_POST[&quot;quantity&quot;]  
           );  
           $_SESSION[&quot;shopping_cart&quot;][0] = $item_array;  
      }  
 }  
 if(isset($_GET[&quot;action&quot;]))  
 {  
      if($_GET[&quot;action&quot;] == &quot;delete&quot;)  
      {  
           foreach($_SESSION[&quot;shopping_cart&quot;] as $keys =&amp;gt; $values)  
           {  
                if($values[&quot;item_id&quot;] == $_GET[&quot;id&quot;])  
                {  
                    unset($_SESSION[&quot;shopping_cart&quot;][$keys]);  
                    echo &#39;&amp;lt;script&amp;gt;alert(&quot;Item Removed&quot;)&amp;lt;/script&amp;gt;&#39;;  
                    echo &#39;&amp;lt;script&amp;gt;window.location=&quot;index.php&quot;&amp;lt;/script&amp;gt;&#39;;  
                }  
           }  
      }  
 }  
 ?&amp;gt;  
 &amp;lt;!DOCTYPE html&amp;gt;  
 &amp;lt;html&amp;gt;  
      &amp;lt;head&amp;gt;  
           &amp;lt;title&amp;gt;Cara membuat shoping cart php mysql&amp;lt;/title&amp;gt;  
           &amp;lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;  
           &amp;lt;link rel=&quot;stylesheet&quot; href=&quot;https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css&quot; /&amp;gt;  
           &amp;lt;script src=&quot;https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;  
      &amp;lt;/head&amp;gt;  
      &amp;lt;body&amp;gt;  
           &amp;lt;br /&amp;gt;  
           &amp;lt;div class=&quot;container&quot; style=&quot;width:700px;&quot;&amp;gt;  
                &amp;lt;h3 align=&quot;center&quot;&amp;gt;Cara membuat shoping cart php mysql&amp;lt;/h3&amp;gt;&amp;lt;br /&amp;gt;  
                &amp;lt;?php  
                $query = &quot;SELECT * FROM tbl_product ORDER BY id ASC&quot;;  
                $result = mysqli_query($connect, $query);  
                if(mysqli_num_rows($result) &amp;gt; 0)  
                {  
                    while($row = mysqli_fetch_array($result))  
                    {  
                ?&amp;gt;  
                &amp;lt;div class=&quot;col-md-4&quot;&amp;gt;  
                     &amp;lt;form method=&quot;post&quot; action=&quot;index.php?action=add&amp;amp;id=&amp;lt;?php echo $row[&quot;id&quot;]; ?&amp;gt;&quot;&amp;gt;  
                          &amp;lt;div style=&quot;border:1px solid #333; background-color:#f1f1f1; border-radius:5px; padding:16px;&quot; align=&quot;center&quot;&amp;gt;  
                               &amp;lt;img src=&quot;&amp;lt;?php echo $row[&quot;image&quot;]; ?&amp;gt;&quot; class=&quot;img-responsive&quot; /&amp;gt;&amp;lt;br /&amp;gt;  
                               &amp;lt;h4 class=&quot;text-info&quot;&amp;gt;&amp;lt;?php echo $row[&quot;name&quot;]; ?&amp;gt;&amp;lt;/h4&amp;gt;  
                               &amp;lt;h4 class=&quot;text-danger&quot;&amp;gt;$ &amp;lt;?php echo $row[&quot;price&quot;]; ?&amp;gt;&amp;lt;/h4&amp;gt;  
                               &amp;lt;input type=&quot;text&quot; name=&quot;quantity&quot; class=&quot;form-control&quot; value=&quot;1&quot; /&amp;gt;  
                               &amp;lt;input type=&quot;hidden&quot; name=&quot;hidden_name&quot; value=&quot;&amp;lt;?php echo $row[&quot;name&quot;]; ?&amp;gt;&quot; /&amp;gt;  
                               &amp;lt;input type=&quot;hidden&quot; name=&quot;hidden_price&quot; value=&quot;&amp;lt;?php echo $row[&quot;price&quot;]; ?&amp;gt;&quot; /&amp;gt;  
                               &amp;lt;input type=&quot;submit&quot; name=&quot;add_to_cart&quot; style=&quot;margin-top:5px;&quot; class=&quot;btn btn-success&quot; value=&quot;Add to Cart&quot; /&amp;gt;  
                          &amp;lt;/div&amp;gt;  
                     &amp;lt;/form&amp;gt;  
                &amp;lt;/div&amp;gt;  
                &amp;lt;?php  
                }  
                }  
                ?&amp;gt;  
                &amp;lt;div style=&quot;clear:both&quot;&amp;gt;&amp;lt;/div&amp;gt;  
                &amp;lt;br /&amp;gt;  
                &amp;lt;h3&amp;gt;Order Details&amp;lt;/h3&amp;gt;  
                &amp;lt;div class=&quot;table-responsive&quot;&amp;gt;  
                     &amp;lt;table class=&quot;table table-bordered&quot;&amp;gt;  
                          &amp;lt;tr&amp;gt;  
                               &amp;lt;th width=&quot;40%&quot;&amp;gt;Item Name&amp;lt;/th&amp;gt;  
                               &amp;lt;th width=&quot;10%&quot;&amp;gt;Quantity&amp;lt;/th&amp;gt;  
                               &amp;lt;th width=&quot;20%&quot;&amp;gt;Price&amp;lt;/th&amp;gt;  
                               &amp;lt;th width=&quot;15%&quot;&amp;gt;Total&amp;lt;/th&amp;gt;  
                               &amp;lt;th width=&quot;5%&quot;&amp;gt;Action&amp;lt;/th&amp;gt;  
                          &amp;lt;/tr&amp;gt;  
                          &amp;lt;?php   
                          if(!empty($_SESSION[&quot;shopping_cart&quot;]))  
                          {  
                            $total = 0;  
                            foreach($_SESSION[&quot;shopping_cart&quot;] as $keys =&amp;gt; $values)  
                            {  
                          ?&amp;gt;  
                          &amp;lt;tr&amp;gt;  
                               &amp;lt;td&amp;gt;&amp;lt;?php echo $values[&quot;item_name&quot;]; ?&amp;gt;&amp;lt;/td&amp;gt;  
                               &amp;lt;td&amp;gt;&amp;lt;?php echo $values[&quot;item_quantity&quot;]; ?&amp;gt;&amp;lt;/td&amp;gt;  
                               &amp;lt;td&amp;gt;$ &amp;lt;?php echo $values[&quot;item_price&quot;]; ?&amp;gt;&amp;lt;/td&amp;gt;  
                               &amp;lt;td&amp;gt;$ &amp;lt;?php echo number_format($values[&quot;item_quantity&quot;] * $values[&quot;item_price&quot;], 2); ?&amp;gt;&amp;lt;/td&amp;gt;  
                               &amp;lt;td&amp;gt;&amp;lt;a href=&quot;index.php?action=delete&amp;amp;id=&amp;lt;?php echo $values[&quot;item_id&quot;]; ?&amp;gt;&quot;&amp;gt;&amp;lt;span class=&quot;text-danger&quot;&amp;gt;Remove&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;  
                          &amp;lt;/tr&amp;gt;  
                          &amp;lt;?php  
                            $total = $total + ($values[&quot;item_quantity&quot;] * $values[&quot;item_price&quot;]);  
                            }  
                          ?&amp;gt;  
                          &amp;lt;tr&amp;gt;  
                               &amp;lt;td colspan=&quot;3&quot; align=&quot;right&quot;&amp;gt;Total&amp;lt;/td&amp;gt;  
                               &amp;lt;td align=&quot;right&quot;&amp;gt;$ &amp;lt;?php echo number_format($total, 2); ?&amp;gt;&amp;lt;/td&amp;gt;  
                               &amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;  
                          &amp;lt;/tr&amp;gt;  
                          &amp;lt;?php  
                          }  
                          ?&amp;gt;  
                     &amp;lt;/table&amp;gt;  
                &amp;lt;/div&amp;gt;  
           &amp;lt;/div&amp;gt;  
           &amp;lt;br /&amp;gt;  
      &amp;lt;/body&amp;gt;  
 &amp;lt;/html&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Potongan script kode dibawah ini untuk menambahkan data belaja kedalam keranjang menggunakan session&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;?php   
 session_start();  
 $connect = mysqli_connect(&quot;localhost&quot;, &quot;root&quot;, &quot;password&quot;, &quot;database&quot;);  
 if(isset($_POST[&quot;add_to_cart&quot;]))  
 {  
      if(isset($_SESSION[&quot;shopping_cart&quot;]))  
      {  
           $item_array_id = array_column($_SESSION[&quot;shopping_cart&quot;], &quot;item_id&quot;);  
           if(!in_array($_GET[&quot;id&quot;], $item_array_id))  
           {  
                $count = count($_SESSION[&quot;shopping_cart&quot;]);  
                $item_array = array(  
                    &#39;item_id&#39; =&amp;gt; $_GET[&quot;id&quot;],  
                    &#39;item_name&#39; =&amp;gt; $_POST[&quot;hidden_name&quot;],  
                    &#39;item_price&#39; =&amp;gt; $_POST[&quot;hidden_price&quot;],  
                    &#39;item_quantity&#39; =&amp;gt; $_POST[&quot;quantity&quot;]  
                );  
                $_SESSION[&quot;shopping_cart&quot;][$count] = $item_array;  
           }  
           else  
           {  
                echo &#39;&amp;lt;script&amp;gt;alert(&quot;Item Already Added&quot;)&amp;lt;/script&amp;gt;&#39;;  
                echo &#39;&amp;lt;script&amp;gt;window.location=&quot;index.php&quot;&amp;lt;/script&amp;gt;&#39;;  
           }  
      }  
      else  
      {  
           $item_array = array(  
                &#39;item_id&#39;=&amp;gt; $_GET[&quot;id&quot;],  
                &#39;item_name&#39;=&amp;gt; $_POST[&quot;hidden_name&quot;],  
                &#39;item_price&#39;=&amp;gt; $_POST[&quot;hidden_price&quot;],  
                &#39;item_quantity&#39;=&amp;gt; $_POST[&quot;quantity&quot;]  
           );  
           $_SESSION[&quot;shopping_cart&quot;][0] = $item_array;  
      }  
 }  
 if(isset($_GET[&quot;action&quot;]))  
 {  
      if($_GET[&quot;action&quot;] == &quot;delete&quot;)  
      {  
           foreach($_SESSION[&quot;shopping_cart&quot;] as $keys =&amp;gt; $values)  
           {  
                if($values[&quot;item_id&quot;] == $_GET[&quot;id&quot;])  
                {  
                    unset($_SESSION[&quot;shopping_cart&quot;][$keys]);  
                    echo &#39;&amp;lt;script&amp;gt;alert(&quot;Item Removed&quot;)&amp;lt;/script&amp;gt;&#39;;  
                    echo &#39;&amp;lt;script&amp;gt;window.location=&quot;index.php&quot;&amp;lt;/script&amp;gt;&#39;;  
                }  
           }  
      }  
 }&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;Silakan dicoba dan dipraktekan dengan baik, teruslah mengasah kemampuan anda. Selamat Belajar&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://lacodeid.blogspot.com/feeds/6407249268829173462/comments/default' title='Posting Komentar'/><link rel='replies' type='text/html' href='https://lacodeid.blogspot.com/2017/10/cara-membuat-shoping-cart-php-mysql.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/6407249268829173462'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/6407249268829173462'/><link rel='alternate' type='text/html' href='https://lacodeid.blogspot.com/2017/10/cara-membuat-shoping-cart-php-mysql.html' title='Cara membuat Shoping Cart PHP Mysql'/><author><name>Lacode</name><uri>http://www.blogger.com/profile/15545994188230698518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3630068095685918406.post-6085018460254062658</id><published>2020-08-09T11:47:00.001+07:00</published><updated>2020-09-09T13:17:26.993+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="jQuery"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>Cara Mudah Membuat Upload Crop Image PHP Mysql Javascript</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-WrK_IH-0Xog3opkRW4aBHwGwDrxDVBHjPxhzdJyjOvCHmbVFJRfMAAmw3R4H8npecg4sh5a_XlIN3Nm_IY4hTHcEOyKHLMvcreDdSdYeuwmTxAy9E-VKHzvBXN57Yygz_r7kNn4SdcQ/s1600/crop-image.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;636&quot; data-original-width=&quot;1244&quot; height=&quot;326&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-WrK_IH-0Xog3opkRW4aBHwGwDrxDVBHjPxhzdJyjOvCHmbVFJRfMAAmw3R4H8npecg4sh5a_XlIN3Nm_IY4hTHcEOyKHLMvcreDdSdYeuwmTxAy9E-VKHzvBXN57Yygz_r7kNn4SdcQ/s640/crop-image.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Ditutorial kali writecode akan membahas cara &lt;b&gt;UPLOAD CROP IMAGE PHP JQUERY&amp;nbsp;&lt;/b&gt;berikut langkah demi langkah pembuatan&amp;nbsp;&lt;b&gt;UPLOAD CROP IMAGE PHP JQUERY&amp;nbsp;&lt;/b&gt;sederhana. Script PHP ini sengaja disimpan sesederhana mungkin untuk programmer yang baru belajar PHP. Apa saja yang harus anda siapkan sebelum memulai project ini Silakan download Jquery&amp;nbsp;&lt;b&gt;jquery-pack.js &amp;amp;&amp;nbsp;jquery.imgareaselect.min.js&amp;nbsp;&lt;a href=&quot;https://jquery.com/download/&quot; target=&quot;_blank&quot;&gt;DISINI&lt;/a&gt;&amp;nbsp;&lt;/b&gt;bila sudah selesai di download silakan masukan ke dalam folder project belajar anda.&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;Directory&lt;/b&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Js&lt;/b&gt;&lt;i&gt; //file js disini&lt;/i&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;upload_pic &lt;/b&gt;//folder image&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;b&gt;File php&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;index.php&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;function.php&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
Pertama buat file &lt;b&gt;&lt;i&gt;index.php&lt;/i&gt;&lt;/b&gt; didalam folder latihan&amp;nbsp; silkan copas script kodenya seperti dibawah ini :&lt;i&gt;&amp;nbsp;&lt;/i&gt;&lt;i&gt;&amp;nbsp;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Baca Juga :&amp;nbsp;&lt;a href=&quot;https://lacodeid.blogspot.co.id/2017/10/cropping-image-php-mysql-jquery-in.html&quot; rel=&quot;nofollow&quot;&gt;Cropping image php mysql jquery in modal bootstrap&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&amp;lt;?php include_once __DIR__.&#39;/function.php&#39;;?&amp;gt;
&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
 &amp;lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot; /&amp;gt;
 &amp;lt;title&amp;gt;Upload crop image php jquery&amp;lt;/title&amp;gt;
 &amp;lt;script type=&quot;text/javascript&quot; src=&quot;js/jquery-pack.js&quot;&amp;gt;&amp;lt;/script&amp;gt;
 &amp;lt;script type=&quot;text/javascript&quot; src=&quot;js/jquery.imgareaselect.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;

&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;

&amp;lt;?php
//Only display the javacript if an image has been uploaded
if(strlen($large_photo_exists)&amp;gt;0){
 $current_large_image_width = getWidth($large_image_location);
 $current_large_image_height = getHeight($large_image_location);?&amp;gt;

 &amp;lt;script type=&quot;text/javascript&quot;&amp;gt;
  function preview(img, selection) { 
   var scaleX = &amp;lt;?php echo $thumb_width;?&amp;gt; / selection.width; 
   var scaleY = &amp;lt;?php echo $thumb_height;?&amp;gt; / selection.height; 
   $(&#39;#thumbnail + div &amp;gt; img&#39;).css({ 
    width: Math.round(scaleX * &amp;lt;?php echo $current_large_image_width;?&amp;gt;) + &#39;px&#39;, 
    height: Math.round(scaleY * &amp;lt;?php echo $current_large_image_height;?&amp;gt;) + &#39;px&#39;,
    marginLeft: &#39;-&#39; + Math.round(scaleX * selection.x1) + &#39;px&#39;, 
    marginTop: &#39;-&#39; + Math.round(scaleY * selection.y1) + &#39;px&#39; 
   });
   $(&#39;#x1&#39;).val(selection.x1);
   $(&#39;#y1&#39;).val(selection.y1);
   $(&#39;#x2&#39;).val(selection.x2);
   $(&#39;#y2&#39;).val(selection.y2);
   $(&#39;#w&#39;).val(selection.width);
   $(&#39;#h&#39;).val(selection.height);
  } 
  $(document).ready(function () { 
   $(&#39;#save_thumb&#39;).click(function() {
    var x1 = $(&#39;#x1&#39;).val();
    var y1 = $(&#39;#y1&#39;).val();
    var x2 = $(&#39;#x2&#39;).val();
    var y2 = $(&#39;#y2&#39;).val();
    var w = $(&#39;#w&#39;).val();
    var h = $(&#39;#h&#39;).val();
    if(x1==&quot;&quot; || y1==&quot;&quot; || x2==&quot;&quot; || y2==&quot;&quot; || w==&quot;&quot; || h==&quot;&quot;){
     alert(&quot;You must make a selection first&quot;);
     return false;
    }else{
     return true;
    }
   });
  }); 
  $(window).load(function () { 
   $(&#39;#thumbnail&#39;).imgAreaSelect({ aspectRatio: &#39;1:&amp;lt;?php echo $thumb_height/$thumb_width;?&amp;gt;&#39;, onSelectChange: preview }); 
  });
 &amp;lt;/script&amp;gt;
&amp;lt;?php }?&amp;gt;

&amp;lt;h1&amp;gt;Photo Upload and Crop&amp;lt;/h1&amp;gt;
&amp;lt;?php
//Display error message if there are any
if(strlen($error)&amp;gt;0){
echo &quot;&amp;lt;ul&amp;gt;&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Error!&amp;lt;/strong&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;&quot;.$error.&quot;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&quot;;
}
if(strlen($large_photo_exists)&amp;gt;0 &amp;amp;&amp;amp; strlen($thumb_photo_exists)&amp;gt;0){
echo $large_photo_exists.&quot;&amp;amp;nbsp;&quot;.$thumb_photo_exists;
echo &quot;&amp;lt;p&amp;gt;&amp;lt;a href=\&quot;&quot;.$_SERVER[&quot;PHP_SELF&quot;].&quot;?a=delete&amp;amp;t=&quot;.$_SESSION[&#39;random_key&#39;].$_SESSION[&#39;user_file_ext&#39;].&quot;\&quot;&amp;gt;Delete images&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&quot;;
echo &quot;&amp;lt;p&amp;gt;&amp;lt;a href=\&quot;&quot;.$_SERVER[&quot;PHP_SELF&quot;].&quot;\&quot;&amp;gt;Upload another&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&quot;;
//Clear the time stamp session and user file extension
$_SESSION[&#39;random_key&#39;]= &quot;&quot;;
$_SESSION[&#39;user_file_ext&#39;]= &quot;&quot;;
}else{
 if(strlen($large_photo_exists)&amp;gt;0){?&amp;gt;
  &amp;lt;h2&amp;gt;Create Thumbnail&amp;lt;/h2&amp;gt;
  &amp;lt;div align=&quot;center&quot;&amp;gt;

   &amp;lt;img src=&quot;&amp;lt;?php echo $upload_path.$large_image_name.$_SESSION[&#39;user_file_ext&#39;];?&amp;gt;&quot; style=&quot;float: left; margin-right: 10px;&quot; id=&quot;thumbnail&quot; alt=&quot;Create Thumbnail&quot; /&amp;gt;

   &amp;lt;div style=&quot;border:1px #e5e5e5 solid; float:left; position:relative; overflow:hidden; width:&amp;lt;?php echo $thumb_width;?&amp;gt;px; height:&amp;lt;?php echo $thumb_height;?&amp;gt;px;&quot;&amp;gt;
    &amp;lt;img src=&quot;&amp;lt;?php echo $upload_path.$large_image_name.$_SESSION[&#39;user_file_ext&#39;];?&amp;gt;&quot; style=&quot;position: relative;&quot; alt=&quot;Thumbnail Preview&quot; /&amp;gt;
   &amp;lt;/div&amp;gt;

   &amp;lt;br style=&quot;clear:both;&quot;/&amp;gt;

   &amp;lt;form name=&quot;thumbnail&quot; action=&quot;&amp;lt;?php echo $_SERVER[&quot;PHP_SELF&quot;];?&amp;gt;&quot; method=&quot;post&quot;&amp;gt;
    &amp;lt;input type=&quot;hidden&quot; name=&quot;x1&quot; value=&quot;&quot; id=&quot;x1&quot; /&amp;gt;
    &amp;lt;input type=&quot;hidden&quot; name=&quot;y1&quot; value=&quot;&quot; id=&quot;y1&quot; /&amp;gt;
    &amp;lt;input type=&quot;hidden&quot; name=&quot;x2&quot; value=&quot;&quot; id=&quot;x2&quot; /&amp;gt;
    &amp;lt;input type=&quot;hidden&quot; name=&quot;y2&quot; value=&quot;&quot; id=&quot;y2&quot; /&amp;gt;
    &amp;lt;input type=&quot;hidden&quot; name=&quot;w&quot; value=&quot;&quot; id=&quot;w&quot; /&amp;gt;
    &amp;lt;input type=&quot;hidden&quot; name=&quot;h&quot; value=&quot;&quot; id=&quot;h&quot; /&amp;gt;
    &amp;lt;input type=&quot;submit&quot; name=&quot;upload_thumbnail&quot; value=&quot;Save Thumbnail&quot; id=&quot;save_thumb&quot; /&amp;gt;
   &amp;lt;/form&amp;gt;
  &amp;lt;/div&amp;gt;
  &amp;lt;hr /&amp;gt;
 &amp;lt;?php } ?&amp;gt;

 &amp;lt;h2&amp;gt;Upload Photo&amp;lt;/h2&amp;gt;
 &amp;lt;form name=&quot;photo&quot; enctype=&quot;multipart/form-data&quot; action=&quot;&amp;lt;?php echo $_SERVER[&quot;PHP_SELF&quot;];?&amp;gt;&quot; method=&quot;post&quot;&amp;gt;
 Photo &amp;lt;input type=&quot;file&quot; name=&quot;image&quot; size=&quot;30&quot; /&amp;gt; &amp;lt;input type=&quot;submit&quot; name=&quot;upload&quot; value=&quot;Upload&quot; /&amp;gt;
 &amp;lt;/form&amp;gt;

&amp;lt;?php } ?&amp;gt;

&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;div&gt;
&lt;br /&gt;
selanjutnya untuk script kode &lt;i&gt;&lt;b&gt;function.php&lt;/b&gt;&lt;/i&gt; seperti dibawah ini :&lt;br /&gt;
&lt;br /&gt;
Baca Juga :&amp;nbsp;&lt;a href=&quot;https://lacodeid.blogspot.co.id/2017/10/insert-dynamic-multi-select-data.html&quot; rel=&quot;nofollow&quot;&gt;Insert dynamic multi select data menggunakan PHP Ajax Jquery&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;?php
 error_reporting (E_ALL ^ E_NOTICE);
 session_start(); //Do not remove this
 //only assign a new timestamp if the session variable is empty
 if (!isset($_SESSION[&#39;random_key&#39;]) || strlen($_SESSION[&#39;random_key&#39;])==0){
     $_SESSION[&#39;random_key&#39;] = strtotime(date(&#39;Y-m-d H:i:s&#39;)); //assign the timestamp to the session variable
  $_SESSION[&#39;user_file_ext&#39;]= &quot;&quot;;
 }
 
 $upload_dir = &quot;upload_pic&quot;; // The directory for the images to be saved in
 $upload_path = $upload_dir.&quot;/&quot;; // The path to where the image will be saved
 $large_image_prefix = &quot;resize_&quot;; // The prefix name to large image
 $thumb_image_prefix = &quot;thumbnail_&quot;; // The prefix name to the thumb image

 $large_image_name = $large_image_prefix.$_SESSION[&#39;random_key&#39;]; // New name of the large image (append the timestamp to the filename)
 $thumb_image_name = $thumb_image_prefix.$_SESSION[&#39;random_key&#39;]; // New name of the thumbnail image (append the timestamp to the filename)

 $max_file = &quot;3&quot;; // Maximum file size in MB
 $max_width = &quot;500&quot;; // Max width allowed for the large image
 $thumb_width = &quot;100&quot;; // Width of thumbnail image
 $thumb_height = &quot;100&quot;; // Height of thumbnail image

 // Only one of these image types should be allowed for upload
 $allowed_image_types = array(&#39;image/pjpeg&#39;=&amp;gt;&quot;jpg&quot;,&#39;image/jpeg&#39;=&amp;gt;&quot;jpg&quot;,&#39;image/jpg&#39;=&amp;gt;&quot;jpg&quot;,&#39;image/png&#39;=&amp;gt;&quot;png&quot;,&#39;image/x-png&#39;=&amp;gt;&quot;png&quot;,&#39;image/gif&#39;=&amp;gt;&quot;gif&quot;);
 $allowed_image_ext = array_unique($allowed_image_types); // do not change this
 $image_ext = &quot;&quot;; // initialise variable, do not change this.
 foreach ($allowed_image_ext as $mime_type =&amp;gt; $ext) {
     $image_ext.= strtoupper($ext).&quot; &quot;;
 }

 ##########################################################################################################
 # IMAGE FUNCTIONS                       #
 # You do not need to alter these functions                 #
 ##########################################################################################################
 function resizeImage($image,$width,$height,$scale) {
  list($imagewidth, $imageheight, $imageType) = getimagesize($image);
  $imageType = image_type_to_mime_type($imageType);
  $newImageWidth = ceil($width * $scale);
  $newImageHeight = ceil($height * $scale);
  $newImage = imagecreatetruecolor($newImageWidth,$newImageHeight);
  
  switch($imageType) {
   case &quot;image/gif&quot;:
    $source=imagecreatefromgif($image); 
    break;
      case &quot;image/pjpeg&quot;:
   case &quot;image/jpeg&quot;:
   case &quot;image/jpg&quot;:
    $source=imagecreatefromjpeg($image); 
    break;
      case &quot;image/png&quot;:
   case &quot;image/x-png&quot;:
    $source=imagecreatefrompng($image); 
    break;
    }
  imagecopyresampled($newImage,$source,0,0,0,0,$newImageWidth,$newImageHeight,$width,$height);
  
  switch($imageType) {
   case &quot;image/gif&quot;:
      imagegif($newImage,$image); 
    break;
        case &quot;image/pjpeg&quot;:
   case &quot;image/jpeg&quot;:
   case &quot;image/jpg&quot;:
      imagejpeg($newImage,$image,90); 
    break;
   case &quot;image/png&quot;:
   case &quot;image/x-png&quot;:
    imagepng($newImage,$image);  
    break;
     }
  
  chmod($image, 0777);
  return $image;
 }
 //You do not need to alter these functions
 function resizeThumbnailImage($thumb_image_name, $image, $width, $height, $start_width, $start_height, $scale){
  list($imagewidth, $imageheight, $imageType) = getimagesize($image);
  $imageType = image_type_to_mime_type($imageType);
  
  $newImageWidth = ceil($width * $scale);
  $newImageHeight = ceil($height * $scale);
  $newImage = imagecreatetruecolor($newImageWidth,$newImageHeight);
  switch($imageType) {
   case &quot;image/gif&quot;:
    $source=imagecreatefromgif($image); 
    break;
      case &quot;image/pjpeg&quot;:
   case &quot;image/jpeg&quot;:
   case &quot;image/jpg&quot;:
    $source=imagecreatefromjpeg($image); 
    break;
      case &quot;image/png&quot;:
   case &quot;image/x-png&quot;:
    $source=imagecreatefrompng($image); 
    break;
    }
  imagecopyresampled($newImage,$source,0,0,$start_width,$start_height,$newImageWidth,$newImageHeight,$width,$height);
  switch($imageType) {
   case &quot;image/gif&quot;:
      imagegif($newImage,$thumb_image_name); 
    break;
        case &quot;image/pjpeg&quot;:
   case &quot;image/jpeg&quot;:
   case &quot;image/jpg&quot;:
      imagejpeg($newImage,$thumb_image_name,90); 
    break;
   case &quot;image/png&quot;:
   case &quot;image/x-png&quot;:
    imagepng($newImage,$thumb_image_name);  
    break;
     }
  chmod($thumb_image_name, 0777);
  return $thumb_image_name;
 }
 //You do not need to alter these functions
 function getHeight($image) {
  $size = getimagesize($image);
  $height = $size[1];
  return $height;
 }
 //You do not need to alter these functions
 function getWidth($image) {
  $size = getimagesize($image);
  $width = $size[0];
  return $width;
 }

 //Image Locations
 $large_image_location = $upload_path.$large_image_name.$_SESSION[&#39;user_file_ext&#39;];
 $thumb_image_location = $upload_path.$thumb_image_name.$_SESSION[&#39;user_file_ext&#39;];

 //Create the upload directory with the right permissions if it doesn&#39;t exist
 if(!is_dir($upload_dir)){
  mkdir($upload_dir, 0777);
  chmod($upload_dir, 0777);
 }

 //Check to see if any images with the same name already exist
 if (file_exists($large_image_location)){
  if(file_exists($thumb_image_location)){
   $thumb_photo_exists = &quot;&amp;lt;img src=\&quot;&quot;.$upload_path.$thumb_image_name.$_SESSION[&#39;user_file_ext&#39;].&quot;\&quot; alt=\&quot;Thumbnail Image\&quot;/&amp;gt;&quot;;
  }else{
   $thumb_photo_exists = &quot;&quot;;
  }
     $large_photo_exists = &quot;&amp;lt;img src=\&quot;&quot;.$upload_path.$large_image_name.$_SESSION[&#39;user_file_ext&#39;].&quot;\&quot; alt=\&quot;Large Image\&quot;/&amp;gt;&quot;;
 } else {
     $large_photo_exists = &quot;&quot;;
  $thumb_photo_exists = &quot;&quot;;
 }

 if (isset($_POST[&quot;upload&quot;])) { 
  //Get the file information
  $userfile_name = $_FILES[&#39;image&#39;][&#39;name&#39;];
  $userfile_tmp = $_FILES[&#39;image&#39;][&#39;tmp_name&#39;];
  $userfile_size = $_FILES[&#39;image&#39;][&#39;size&#39;];
  $userfile_type = $_FILES[&#39;image&#39;][&#39;type&#39;];
  $filename = basename($_FILES[&#39;image&#39;][&#39;name&#39;]);
  $file_ext = strtolower(substr($filename, strrpos($filename, &#39;.&#39;) + 1));
  
  //Only process if the file is a JPG, PNG or GIF and below the allowed limit
  if((!empty($_FILES[&quot;image&quot;])) &amp;amp;&amp;amp; ($_FILES[&#39;image&#39;][&#39;error&#39;] == 0)) {
   
   foreach ($allowed_image_types as $mime_type =&amp;gt; $ext) {
    //loop through the specified image types and if they match the extension then break out
    //everything is ok so go and check file size
    if($file_ext==$ext &amp;amp;&amp;amp; $userfile_type==$mime_type){
     $error = &quot;&quot;;
     break;
    }else{
     $error = &quot;Only &amp;lt;strong&amp;gt;&quot;.$image_ext.&quot;&amp;lt;/strong&amp;gt; images accepted for upload&amp;lt;br /&amp;gt;&quot;;
    }
   }
   //check if the file size is above the allowed limit
   if ($userfile_size &amp;gt; ($max_file*1048576)) {
    $error.= &quot;Images must be under &quot;.$max_file.&quot;MB in size&quot;;
   }
   
  }else{
   $error= &quot;Select an image for upload&quot;;
  }

  //Everything is ok, so we can upload the image.
  if (strlen($error)==0){
   
   if (isset($_FILES[&#39;image&#39;][&#39;name&#39;])){
    //this file could now has an unknown file extension (we hope it&#39;s one of the ones set above!)
    $large_image_location = $large_image_location.&quot;.&quot;.$file_ext;
    $thumb_image_location = $thumb_image_location.&quot;.&quot;.$file_ext;
    
    //put the file ext in the session so we know what file to look for once its uploaded
    $_SESSION[&#39;user_file_ext&#39;]=&quot;.&quot;.$file_ext;
    
    move_uploaded_file($userfile_tmp, $large_image_location);
    chmod($large_image_location, 0777);
    
    $width = getWidth($large_image_location);
    $height = getHeight($large_image_location);
    //Scale the image if it is greater than the width set above
    if ($width &amp;gt; $max_width){
     $scale = $max_width/$width;
     $uploaded = resizeImage($large_image_location,$width,$height,$scale);
    }else{
     $scale = 1;
     $uploaded = resizeImage($large_image_location,$width,$height,$scale);
    }
    //Delete the thumbnail file so the user can create a new one
    if (file_exists($thumb_image_location)) {
     unlink($thumb_image_location);
    }
   }
   //Refresh the page to show the new uploaded image
   header(&quot;location:&quot;.$_SERVER[&quot;PHP_SELF&quot;]);
   exit();
  }
 }

 if (isset($_POST[&quot;upload_thumbnail&quot;]) &amp;amp;&amp;amp; strlen($large_photo_exists)&amp;gt;0) {
  $x1 = $_POST[&quot;x1&quot;];
  $y1 = $_POST[&quot;y1&quot;];
  $x2 = $_POST[&quot;x2&quot;];
  $y2 = $_POST[&quot;y2&quot;];
  $w = $_POST[&quot;w&quot;];
  $h = $_POST[&quot;h&quot;];
  $scale = $thumb_width/$w;
  $cropped = resizeThumbnailImage($thumb_image_location, $large_image_location,$w,$h,$x1,$y1,$scale);
  header(&quot;location:&quot;.$_SERVER[&quot;PHP_SELF&quot;]);
  exit();
 }


 if ($_GET[&#39;a&#39;]==&quot;delete&quot; &amp;amp;&amp;amp; strlen($_GET[&#39;t&#39;])&amp;gt;0){
  $large_image_location = $upload_path.$large_image_prefix.$_GET[&#39;t&#39;];
  $thumb_image_location = $upload_path.$thumb_image_prefix.$_GET[&#39;t&#39;];
  if (file_exists($large_image_location)) {
   unlink($large_image_location);
  }
  if (file_exists($thumb_image_location)) {
   unlink($thumb_image_location);
  }
  header(&quot;location:&quot;.$_SERVER[&quot;PHP_SELF&quot;]);
  exit(); 
 }
?&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
Untuk kode Javascriptnya seperti dibawah ini : 
&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;
function preview(img, selection) { 
 var scaleX = &amp;lt;?php echo $thumb_width;?&amp;gt; / selection.width; 
 var scaleY = &amp;lt;?php echo $thumb_height;?&amp;gt; / selection.height; 
 $(&#39;#thumbnail + div &amp;gt; img&#39;).css({ 
  width: Math.round(scaleX * &amp;lt;?php echo $current_large_image_width;?&amp;gt;) + &#39;px&#39;, 
  height: Math.round(scaleY * &amp;lt;?php echo $current_large_image_height;?&amp;gt;) + &#39;px&#39;,
  marginLeft: &#39;-&#39; + Math.round(scaleX * selection.x1) + &#39;px&#39;, 
  marginTop: &#39;-&#39; + Math.round(scaleY * selection.y1) + &#39;px&#39; 
 });
 $(&#39;#x1&#39;).val(selection.x1);
 $(&#39;#y1&#39;).val(selection.y1);
 $(&#39;#x2&#39;).val(selection.x2);
 $(&#39;#y2&#39;).val(selection.y2);
 $(&#39;#w&#39;).val(selection.width);
 $(&#39;#h&#39;).val(selection.height);
} 
$(document).ready(function () { 
 $(&#39;#save_thumb&#39;).click(function() {
  var x1 = $(&#39;#x1&#39;).val();
  var y1 = $(&#39;#y1&#39;).val();
  var x2 = $(&#39;#x2&#39;).val();
  var y2 = $(&#39;#y2&#39;).val();
  var w = $(&#39;#w&#39;).val();
  var h = $(&#39;#h&#39;).val();
if(x1==&quot;&quot; || y1==&quot;&quot; || x2==&quot;&quot; || y2==&quot;&quot; || w==&quot;&quot; || h==&quot;&quot;){
   alert(&quot;You must make a selection first&quot;);
   return false;
  }else{
   return true;
  }
 });
}); 
$(window).load(function () { 
$(&#39;#thumbnail&#39;).imgAreaSelect({ aspectRatio: &#39;1:&amp;lt;?php echo $thumb_height/$thumb_width;?&amp;gt;&#39;, onSelectChange: preview }); 
});
&amp;lt;/script&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Disini untuk menyimpan nama file gamabr acak menggunakan timestamp. 
Kita sekarang juga menyimpan ekstensi file yang melalui script, untuk memastikan kita berhadapan dengan tipe gambar yang tepat.kodenya seperti dibawah ini :&lt;br /&gt;
&lt;br /&gt;
Baca Juga :&amp;nbsp;&lt;a href=&quot;https://lacodeid.blogspot.co.id/2017/10/load-more-dengan-ajax-jquery-php-mysqli.html&quot; rel=&quot;nofollow&quot;&gt;Load more dengan ajax jquery php mysqli&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;if (!isset($_SESSION[&#39;random_key&#39;]) || strlen($_SESSION[&#39;random_key&#39;])==0){
$_SESSION[&#39;random_key&#39;] = strtotime(date(&#39;Y-m-d H:i:s&#39;));//assign the timestamp to the session variable
$_SESSION[&#39;user_file_ext&#39;]= &quot;&quot;;
}&lt;/code&gt;&lt;/pre&gt;
silakan dipelajari dan dipahami untuk script lengkapnya &lt;a href=&quot;http://www.webmotionuk.com/php-jquery-image-upload-and-crop/&quot; target=&quot;_blank&quot;&gt;DISINI&lt;/a&gt; selamat belajar</content><link rel='replies' type='application/atom+xml' href='https://lacodeid.blogspot.com/feeds/6085018460254062658/comments/default' title='Posting Komentar'/><link rel='replies' type='text/html' href='https://lacodeid.blogspot.com/2017/10/upload-crop-image-php-jquery.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/6085018460254062658'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/6085018460254062658'/><link rel='alternate' type='text/html' href='https://lacodeid.blogspot.com/2017/10/upload-crop-image-php-jquery.html' title='Cara Mudah Membuat Upload Crop Image PHP Mysql Javascript'/><author><name>Lacode</name><uri>http://www.blogger.com/profile/15545994188230698518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-WrK_IH-0Xog3opkRW4aBHwGwDrxDVBHjPxhzdJyjOvCHmbVFJRfMAAmw3R4H8npecg4sh5a_XlIN3Nm_IY4hTHcEOyKHLMvcreDdSdYeuwmTxAy9E-VKHzvBXN57Yygz_r7kNn4SdcQ/s72-c/crop-image.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3630068095685918406.post-3608308320761930071</id><published>2018-02-22T16:33:00.000+07:00</published><updated>2018-03-05T17:17:14.892+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Bootstrap"/><category scheme="http://www.blogger.com/atom/ns#" term="css"/><category scheme="http://www.blogger.com/atom/ns#" term="HTML"/><title type='text'>Template ECommerce Product Detail CSS</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnEJIKG4xf3QvRwS0QNs52zGYF4H7t3kKzp_5q4fQF1cCOmwY-oUTaSG9zposQ9XDPv5Ufmj38DyZpQDg_OVXaPw85_qH8jskoL9tyU6SPMkP6dcEBFPbZN_z4IT_IwJuidH_CkXEiSA8/s1600/produkdetail.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Template ECommerce Product Detail CSS&quot; border=&quot;0&quot; data-original-height=&quot;487&quot; data-original-width=&quot;1153&quot; height=&quot;270&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnEJIKG4xf3QvRwS0QNs52zGYF4H7t3kKzp_5q4fQF1cCOmwY-oUTaSG9zposQ9XDPv5Ufmj38DyZpQDg_OVXaPw85_qH8jskoL9tyU6SPMkP6dcEBFPbZN_z4IT_IwJuidH_CkXEiSA8/s640/produkdetail.jpg&quot; style=&quot;height: auto; width: 100%;&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Jumpa lagi dengan Lacodeid(WriteCode) ditutorial ini WriteCode Akan membahas cara membuat&amp;nbsp;&lt;b&gt;Template ECommerce Product Detail CSS, &lt;/b&gt;untuk membuat template seperti gambar diatas bisa ikuti tutorial ini sampai dengan selesai, cara ini sering saya gunakan untuk membuat detail produk disetiap project website yang berhubungan dengan penjualan, langsung saja tanpa basa basi kita masuk kekodingannya dibawah ini :&lt;br /&gt;
&lt;br /&gt;
Baca Juga :&amp;nbsp;&lt;a href=&quot;https://lacodeid.blogspot.co.id/2018/02/carousal-product-responsive-ponsel-dan.html&quot; rel=&quot;nofollow&quot;&gt;Carousal Product Responsive Ponsel dan Desktop&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 1&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Untuk script CSS bisa Anda copas dibawah ini letakan didalam tag &lt;i&gt;&amp;lt;head&amp;gt;&lt;/i&gt; :&lt;br /&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt;&amp;lt;style type=&quot;text/css&quot;&amp;gt;
        
        /*****************globals*************/
        body {
          font-family: &#39;open sans&#39;;
          overflow-x: hidden; }

        img {
          max-width: 100%; }

        .preview {
          display: -webkit-box;
          display: -webkit-flex;
          display: -ms-flexbox;
          display: flex;
          -webkit-box-orient: vertical;
          -webkit-box-direction: normal;
          -webkit-flex-direction: column;
              -ms-flex-direction: column;
                  flex-direction: column; }
          @media screen and (max-width: 996px) {
            .preview {
              margin-bottom: 20px; } }

        .preview-pic {
          -webkit-box-flex: 1;
          -webkit-flex-grow: 1;
              -ms-flex-positive: 1;
                  flex-grow: 1; }

        .preview-thumbnail.nav-tabs {
          border: none;
          margin-top: 15px; }
          .preview-thumbnail.nav-tabs li {
            width: 18%;
            margin-right: 2.5%; }
            .preview-thumbnail.nav-tabs li img {
              max-width: 100%;
              display: block; }
            .preview-thumbnail.nav-tabs li a {
              padding: 0;
              margin: 0; }
            .preview-thumbnail.nav-tabs li:last-of-type {
              margin-right: 0; }

        .tab-content {
          overflow: hidden; }
          .tab-content img {
            width: 100%;
            -webkit-animation-name: opacity;
                    animation-name: opacity;
            -webkit-animation-duration: .3s;
                    animation-duration: .3s; }

        .card {
          margin-top: 50px;
          background: #eee;
          padding: 3em;
          line-height: 1.5em; }

        @media screen and (min-width: 997px) {
          .wrapper {
            display: -webkit-box;
            display: -webkit-flex;
            display: -ms-flexbox;
            display: flex; } }

        .details {
          display: -webkit-box;
          display: -webkit-flex;
          display: -ms-flexbox;
          display: flex;
          -webkit-box-orient: vertical;
          -webkit-box-direction: normal;
          -webkit-flex-direction: column;
              -ms-flex-direction: column;
                  flex-direction: column; }

        .colors {
          -webkit-box-flex: 1;
          -webkit-flex-grow: 1;
              -ms-flex-positive: 1;
                  flex-grow: 1; }

        .product-title, .price, .sizes, .colors {
          text-transform: UPPERCASE;
          font-weight: bold; }

        .checked, .price span {
          color: #ff9f1a; }

        .product-title, .rating, .product-description, .price, .vote, .sizes {
          margin-bottom: 15px; }

        .product-title {
          margin-top: 0; }

        .size {
          margin-right: 10px; }
          .size:first-of-type {
            margin-left: 40px; }

        .color {
          display: inline-block;
          vertical-align: middle;
          margin-right: 10px;
          height: 2em;
          width: 2em;
          border-radius: 2px; }
          .color:first-of-type {
            margin-left: 20px; }

        .add-to-cart, .like {
          background: #ff9f1a;
          padding: 1.2em 1.5em;
          border: none;
          text-transform: UPPERCASE;
          font-weight: bold;
          color: #fff;
          -webkit-transition: background .3s ease;
                  transition: background .3s ease; }
          .add-to-cart:hover, .like:hover {
            background: #b36800;
            color: #fff; }

        .not-available {
          text-align: center;
          line-height: 2em; }
          .not-available:before {
            font-family: fontawesome;
            content: &quot;\f00d&quot;;
            color: #fff; }

        .orange {
          background: #ff9f1a; }

        .green {
          background: #85ad00; }

        .blue {
          background: #0076ad; }

        .tooltip-inner {
          padding: 1.3em; }

        @-webkit-keyframes opacity {
          0% {
            opacity: 0;
            -webkit-transform: scale(3);
                    transform: scale(3); }
          100% {
            opacity: 1;
            -webkit-transform: scale(1);
                    transform: scale(1); } }

        @keyframes opacity {
          0% {
            opacity: 0;
            -webkit-transform: scale(3);
                    transform: scale(3); }
          100% {
            opacity: 1;
            -webkit-transform: scale(1);
                    transform: scale(1); } }

    &amp;lt;/style&amp;gt;&lt;/pre&gt;
&lt;b&gt;Step 2&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
Untuk Bootstrap bisa anda copas dibawah ini letakan didalam tag &lt;i&gt;&amp;lt;head&amp;gt;&lt;/i&gt;&lt;br /&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt; &amp;lt;link rel=&quot;stylesheet&quot; href=&quot;https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css&quot;&amp;gt;
 &amp;lt;link rel=&quot;stylesheet&quot; href=&quot;https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css&quot;&amp;gt;
 &amp;lt;script src=&quot;https://netdna.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;
 &amp;lt;script src=&quot;https://code.jquery.com/jquery-1.11.0.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/pre&gt;
&lt;b&gt;Step 3&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Kode HTML bisa anda copas dibawah ini :&lt;br /&gt;
&lt;br /&gt;
Baca Juga :&amp;nbsp;&lt;a href=&quot;https://lacodeid.blogspot.co.id/2018/02/html-css-produk-mobile-responsive.html&quot; rel=&quot;nofollow&quot;&gt;HTML CSS Produk Mobile Responsive&lt;/a&gt;&lt;br /&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang=&quot;en&quot;&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&amp;gt;
    &amp;lt;title&amp;gt;Template E-Commerce Product Detail CSS&amp;lt;/title&amp;gt;

    &amp;lt;!-- letakan bootstrap disini --&amp;gt;


    &amp;lt;!-- letakan style css disini --&amp;gt;

  &amp;lt;/head&amp;gt;

  &amp;lt;body&amp;gt;
    
    &amp;lt;div class=&quot;container&quot;&amp;gt;
        &amp;lt;div class=&quot;card&quot;&amp;gt;
            &amp;lt;div class=&quot;container-fliud&quot;&amp;gt;
                &amp;lt;div class=&quot;wrapper row&quot;&amp;gt;
                    &amp;lt;div class=&quot;preview col-md-6&quot;&amp;gt;
                        
                        &amp;lt;div class=&quot;preview-pic tab-content&quot;&amp;gt;
                          &amp;lt;div class=&quot;tab-pane active&quot; id=&quot;pic-1&quot;&amp;gt;&amp;lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggTHY93lAVZt-oGuIp7LaduDESC3KNTR_NPeK8uf4Gg_jEbwdJiFP6kVbzUorv95XfcBHwO1Fw8A3WOXsbdrSMOzFNR9F0BDyN9sIgJSfWwHELU0Z0ARcbYi181HfWDsAE9wqSkdG0LQU/s640/lacodeid.jpg&quot; /&amp;gt;&amp;lt;/div&amp;gt;
                          &amp;lt;div class=&quot;tab-pane&quot; id=&quot;pic-2&quot;&amp;gt;&amp;lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggTHY93lAVZt-oGuIp7LaduDESC3KNTR_NPeK8uf4Gg_jEbwdJiFP6kVbzUorv95XfcBHwO1Fw8A3WOXsbdrSMOzFNR9F0BDyN9sIgJSfWwHELU0Z0ARcbYi181HfWDsAE9wqSkdG0LQU/s640/lacodeid.jpg&quot; /&amp;gt;&amp;lt;/div&amp;gt;
                          &amp;lt;div class=&quot;tab-pane&quot; id=&quot;pic-3&quot;&amp;gt;&amp;lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggTHY93lAVZt-oGuIp7LaduDESC3KNTR_NPeK8uf4Gg_jEbwdJiFP6kVbzUorv95XfcBHwO1Fw8A3WOXsbdrSMOzFNR9F0BDyN9sIgJSfWwHELU0Z0ARcbYi181HfWDsAE9wqSkdG0LQU/s640/lacodeid.jpg&quot; /&amp;gt;&amp;lt;/div&amp;gt;
                          &amp;lt;div class=&quot;tab-pane&quot; id=&quot;pic-4&quot;&amp;gt;&amp;lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggTHY93lAVZt-oGuIp7LaduDESC3KNTR_NPeK8uf4Gg_jEbwdJiFP6kVbzUorv95XfcBHwO1Fw8A3WOXsbdrSMOzFNR9F0BDyN9sIgJSfWwHELU0Z0ARcbYi181HfWDsAE9wqSkdG0LQU/s640/lacodeid.jpg&quot; /&amp;gt;&amp;lt;/div&amp;gt;
                          &amp;lt;div class=&quot;tab-pane&quot; id=&quot;pic-5&quot;&amp;gt;&amp;lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggTHY93lAVZt-oGuIp7LaduDESC3KNTR_NPeK8uf4Gg_jEbwdJiFP6kVbzUorv95XfcBHwO1Fw8A3WOXsbdrSMOzFNR9F0BDyN9sIgJSfWwHELU0Z0ARcbYi181HfWDsAE9wqSkdG0LQU/s640/lacodeid.jpg&quot; /&amp;gt;&amp;lt;/div&amp;gt;
                        &amp;lt;/div&amp;gt;
                        &amp;lt;ul class=&quot;preview-thumbnail nav nav-tabs&quot;&amp;gt;
                          &amp;lt;li class=&quot;active&quot;&amp;gt;&amp;lt;a data-target=&quot;#pic-1&quot; data-toggle=&quot;tab&quot;&amp;gt;&amp;lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggTHY93lAVZt-oGuIp7LaduDESC3KNTR_NPeK8uf4Gg_jEbwdJiFP6kVbzUorv95XfcBHwO1Fw8A3WOXsbdrSMOzFNR9F0BDyN9sIgJSfWwHELU0Z0ARcbYi181HfWDsAE9wqSkdG0LQU/s640/lacodeid.jpg&quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;
                          &amp;lt;li&amp;gt;&amp;lt;a data-target=&quot;#pic-2&quot; data-toggle=&quot;tab&quot;&amp;gt;&amp;lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggTHY93lAVZt-oGuIp7LaduDESC3KNTR_NPeK8uf4Gg_jEbwdJiFP6kVbzUorv95XfcBHwO1Fw8A3WOXsbdrSMOzFNR9F0BDyN9sIgJSfWwHELU0Z0ARcbYi181HfWDsAE9wqSkdG0LQU/s640/lacodeid.jpg&quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;
                          &amp;lt;li&amp;gt;&amp;lt;a data-target=&quot;#pic-3&quot; data-toggle=&quot;tab&quot;&amp;gt;&amp;lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggTHY93lAVZt-oGuIp7LaduDESC3KNTR_NPeK8uf4Gg_jEbwdJiFP6kVbzUorv95XfcBHwO1Fw8A3WOXsbdrSMOzFNR9F0BDyN9sIgJSfWwHELU0Z0ARcbYi181HfWDsAE9wqSkdG0LQU/s640/lacodeid.jpg&quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;
                          &amp;lt;li&amp;gt;&amp;lt;a data-target=&quot;#pic-4&quot; data-toggle=&quot;tab&quot;&amp;gt;&amp;lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggTHY93lAVZt-oGuIp7LaduDESC3KNTR_NPeK8uf4Gg_jEbwdJiFP6kVbzUorv95XfcBHwO1Fw8A3WOXsbdrSMOzFNR9F0BDyN9sIgJSfWwHELU0Z0ARcbYi181HfWDsAE9wqSkdG0LQU/s640/lacodeid.jpg&quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;
                          &amp;lt;li&amp;gt;&amp;lt;a data-target=&quot;#pic-5&quot; data-toggle=&quot;tab&quot;&amp;gt;&amp;lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggTHY93lAVZt-oGuIp7LaduDESC3KNTR_NPeK8uf4Gg_jEbwdJiFP6kVbzUorv95XfcBHwO1Fw8A3WOXsbdrSMOzFNR9F0BDyN9sIgJSfWwHELU0Z0ARcbYi181HfWDsAE9wqSkdG0LQU/s640/lacodeid.jpg&quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;
                        &amp;lt;/ul&amp;gt;
                        
                    &amp;lt;/div&amp;gt;
                    &amp;lt;div class=&quot;details col-md-6&quot;&amp;gt;
                        &amp;lt;h3 class=&quot;product-title&quot;&amp;gt;men&#39;s shoes fashion&amp;lt;/h3&amp;gt;
                        &amp;lt;div class=&quot;rating&quot;&amp;gt;
                            &amp;lt;div class=&quot;stars&quot;&amp;gt;
                                &amp;lt;span class=&quot;fa fa-star checked&quot;&amp;gt;&amp;lt;/span&amp;gt;
                                &amp;lt;span class=&quot;fa fa-star checked&quot;&amp;gt;&amp;lt;/span&amp;gt;
                                &amp;lt;span class=&quot;fa fa-star checked&quot;&amp;gt;&amp;lt;/span&amp;gt;
                                &amp;lt;span class=&quot;fa fa-star&quot;&amp;gt;&amp;lt;/span&amp;gt;
                                &amp;lt;span class=&quot;fa fa-star&quot;&amp;gt;&amp;lt;/span&amp;gt;
                            &amp;lt;/div&amp;gt;
                            &amp;lt;span class=&quot;review-no&quot;&amp;gt;41 reviews&amp;lt;/span&amp;gt;
                        &amp;lt;/div&amp;gt;
                        &amp;lt;p class=&quot;product-description&quot;&amp;gt;Suspendisse quos? Tempus cras iure temporibus? Eu laudantium cubilia sem sem! Repudiandae et! Massa senectus enim minim sociosqu delectus posuere.&amp;lt;/p&amp;gt;
                        &amp;lt;h4 class=&quot;price&quot;&amp;gt;current price: &amp;lt;span&amp;gt;$180&amp;lt;/span&amp;gt;&amp;lt;/h4&amp;gt;
                        &amp;lt;p class=&quot;vote&quot;&amp;gt;&amp;lt;strong&amp;gt;91%&amp;lt;/strong&amp;gt; of buyers enjoyed this product! &amp;lt;strong&amp;gt;(87 votes)&amp;lt;/strong&amp;gt;&amp;lt;/p&amp;gt;
                        &amp;lt;h5 class=&quot;sizes&quot;&amp;gt;sizes:
                            &amp;lt;span class=&quot;size&quot; data-toggle=&quot;tooltip&quot; title=&quot;small&quot;&amp;gt;s&amp;lt;/span&amp;gt;
                            &amp;lt;span class=&quot;size&quot; data-toggle=&quot;tooltip&quot; title=&quot;medium&quot;&amp;gt;m&amp;lt;/span&amp;gt;
                            &amp;lt;span class=&quot;size&quot; data-toggle=&quot;tooltip&quot; title=&quot;large&quot;&amp;gt;l&amp;lt;/span&amp;gt;
                            &amp;lt;span class=&quot;size&quot; data-toggle=&quot;tooltip&quot; title=&quot;xtra large&quot;&amp;gt;xl&amp;lt;/span&amp;gt;
                        &amp;lt;/h5&amp;gt;
                        &amp;lt;h5 class=&quot;colors&quot;&amp;gt;colors:
                            &amp;lt;span class=&quot;color orange not-available&quot; data-toggle=&quot;tooltip&quot; title=&quot;Not In store&quot;&amp;gt;&amp;lt;/span&amp;gt;
                            &amp;lt;span class=&quot;color green&quot;&amp;gt;&amp;lt;/span&amp;gt;
                            &amp;lt;span class=&quot;color blue&quot;&amp;gt;&amp;lt;/span&amp;gt;
                        &amp;lt;/h5&amp;gt;
                        &amp;lt;div class=&quot;action&quot;&amp;gt;
                            &amp;lt;button class=&quot;add-to-cart btn btn-default&quot; type=&quot;button&quot;&amp;gt;add to cart&amp;lt;/button&amp;gt;
                            &amp;lt;button class=&quot;like btn btn-default&quot; type=&quot;button&quot;&amp;gt;&amp;lt;span class=&quot;fa fa-heart&quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/button&amp;gt;
                        &amp;lt;/div&amp;gt;
                    &amp;lt;/div&amp;gt;
                &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/pre&gt;
Untuk Tampilan yang lebih baik silakan anda kembangkan sesuai dengan keinginan agan, diatas cara membuat&amp;nbsp;&lt;b&gt;Template ECommerce Product Detail CSS &lt;/b&gt;bila ada pertanyaan silakan komen dibawah&lt;br /&gt;
&lt;br /&gt;
Baca Juga :&amp;nbsp;&lt;a href=&quot;https://lacodeid.blogspot.co.id/2018/02/ecommerce-popup-produk-html-5.html&quot; rel=&quot;nofollow&quot;&gt;Ecommerce Popup Produk HTML 5&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='https://lacodeid.blogspot.com/feeds/3608308320761930071/comments/default' title='Posting Komentar'/><link rel='replies' type='text/html' href='https://lacodeid.blogspot.com/2018/02/template-ecommerce-product-detail-css.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/3608308320761930071'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/3608308320761930071'/><link rel='alternate' type='text/html' href='https://lacodeid.blogspot.com/2018/02/template-ecommerce-product-detail-css.html' title='Template ECommerce Product Detail CSS'/><author><name>Lacode</name><uri>http://www.blogger.com/profile/15545994188230698518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnEJIKG4xf3QvRwS0QNs52zGYF4H7t3kKzp_5q4fQF1cCOmwY-oUTaSG9zposQ9XDPv5Ufmj38DyZpQDg_OVXaPw85_qH8jskoL9tyU6SPMkP6dcEBFPbZN_z4IT_IwJuidH_CkXEiSA8/s72-c/produkdetail.jpg" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Jakarta, Indonesia</georss:featurename><georss:point>-6.17511 106.86503949999997</georss:point><georss:box>-8.1968405 104.28325249999996 -4.1533795 109.44682649999997</georss:box></entry><entry><id>tag:blogger.com,1999:blog-3630068095685918406.post-7125559772294272043</id><published>2018-02-19T23:26:00.000+07:00</published><updated>2018-02-22T11:48:34.943+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="css"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>Membuat Editor CSS dengan Textarea</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjReuytqC_zFQbZYIeFSZIqkcWy_iXyyQUCY-3yOLFZJaKeNzWIgpvqN-1-heZxYWW3tVSyvmN0F46GnTUQrwz3HNg1acCRaIB80L5DfoMQi3kPPaUObvqsdptywr9VA6qYJVc1njn-uxg/s1600/editorcss.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;534&quot; data-original-width=&quot;818&quot; height=&quot;416&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjReuytqC_zFQbZYIeFSZIqkcWy_iXyyQUCY-3yOLFZJaKeNzWIgpvqN-1-heZxYWW3tVSyvmN0F46GnTUQrwz3HNg1acCRaIB80L5DfoMQi3kPPaUObvqsdptywr9VA6qYJVc1njn-uxg/s640/editorcss.jpg&quot; style=&quot;height: auto; width: 100%;&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Ditutorial kali ini WriteCode akan membuat tutorial cara&amp;nbsp;&lt;b&gt;Membuat Editor CSS dengan Textarea, &lt;/b&gt;membuat editor ini tidak sulit untuk dilakukan, disini kami akan membagikan cara membuatnya bisa anda ikuti step step dibawah ini :&lt;br /&gt;
&lt;br /&gt;
Sebelum masuk kekodingan siapkan dua buah file seperti dibawah ini :&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1.editorcss.php&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;2.style.css &lt;/b&gt;&lt;i&gt;untuk style css dibiarkan kosong jangan dulu diisi&lt;/i&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;Step 1&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Silakan anda copas koding dibawah ini kedalam file &lt;b&gt;editorcss.php&amp;nbsp;&lt;/b&gt;untuk kodingnya dibawah ini :&lt;br /&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt;&amp;lt;?php
session_start();
if (isset($_POST[&#39;cssedit&#39;])) {
 $p=$_POST[&#39;editor&#39;];
 $a = fopen(&quot;style.css&quot;, &#39;w&#39;);
 fwrite($a, $p);
 fclose($a);
 chmod(&quot;style.css&quot;, 0644);
}
echo &#39;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;style.css&quot;&amp;gt;&#39;;
$myfile = fopen(&quot;style.css&quot;, &quot;r&quot;) or die(&quot;Unable to open file!&quot;);
echo &#39;&amp;lt;br&amp;gt;&amp;lt;h1&amp;gt;EDITOR CSS&amp;lt;/h1&amp;gt;&#39;;
echo &#39;&amp;lt;form method=&quot;post&quot;&amp;gt;&#39;;
echo &#39;&amp;lt;center&amp;gt;&amp;lt;textarea name=&quot;editor&quot;&amp;gt;&#39;;while(!feof($myfile)) {echo fgets($myfile);}
echo &#39;&amp;lt;/textarea&amp;gt;&amp;lt;/center&amp;gt;
&amp;lt;center&amp;gt;&amp;lt;input type=&quot;submit&quot; name=&quot;cssedit&quot; value=&quot;SAVE CSS&quot;&amp;gt;&amp;lt;/center&amp;gt;
&amp;lt;/form&amp;gt;&#39;;
fclose($myfile);&lt;/pre&gt;
&lt;div&gt;
Sejauh ini script php diatas sudah berjalan normal, untuk mencobanya proses cara &lt;a href=&quot;https://lacodeid.blogspot.com/2018/02/cara-update-style-css-dengan-php.html&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;update css&lt;/a&gt; silakan dijalankan dilocalhost kesayangan agan untu ujicoba silakan copas CSS dibawah ini , masukan kedalam textarea lalu klik tombol &lt;b&gt;save css&lt;/b&gt; bila anda berhasil maka akan tampak seperti gambar diatas&lt;/div&gt;
&lt;div&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt;body {margin-left:0; margin-right:0; margin-top:0;text-align:left}
p, li {font:13px Verdana; color:black;text-align:left;margin-top:0.2em;margin-bottom:0}
h1 {font:bold 28px Verdana; color:black;text-align:center}
h2 {font:bold 24px Verdana;text-align:center}
h3 {font:bold 15px Verdana;}
.a {font:bold 13px Verdana; margin:0 25px 0 0;}
.b {font:bold 13px Verdana; margin:10px 25px 0 0;}
.c {width:100%; margin:0; padding:0;}
.d {position:absolute; left:0px; top:100px; width:200px; margin:0; padding:10px; background-color:#cccccc; border:2px solid #000; font:bold 11px Verdana;}
.e {position:absolute; left:25%; top:100px; width:74.9%; height:20px; margin:0; padding:0 0 0 20px; background-color:#cccccc; border:2px solid #000; font:bold 11px Verdana;}
.f {position:absolute; left:5px; top:5px; width:233px; height:91px; margin:0; color:darkorange; font:bold 11px Courier; padding:0; z-index:10; background-image:url(&#39;logo1.jpg&#39;); background-repeat:no-repeat; line-height:0.88em; text-align:right;}
.g {color:blue; border:1px solid blue;padding:5px}
.ad {position:absolute;width:145px;top:150px;left:857px;text-align:left}
.main {position:absolute;width:560px;top:150px;left:270px;padding:10px;text-align:left}
textarea {
    width: 50%;
    height: 350px;
    padding: 12px 20px;
    box-sizing: border-box;
    border: 2px solid #ccc;
    border-radius: 4px;
    background-color: #f8f8f8;
    font-size: 16px;
    resize: none;
}
input[type=text], select, textarea{
    display: block;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    resize: vertical;
}
label {
    padding: 12px 12px 12px 0;
    display: inline-block;
}
input[type=submit] {
    background-color: #fb036d;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
}

input[type=submit]:hover {
    background-color: #45a049;
}&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
Potongan script :&lt;br /&gt;
&lt;br /&gt;
Baca Juga :&amp;nbsp;&lt;a href=&quot;https://lacodeid.blogspot.co.id/2018/02/cara-mencegah-copy-file-css-dengan-php.html&quot; rel=&quot;nofollow&quot;&gt;Cara mencegah copy file css dengan php&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt;session_start();
if (isset($_POST[&#39;cssedit&#39;])) {
 $p=$_POST[&#39;editor&#39;];
 $a = fopen(&quot;style.css&quot;, &#39;w&#39;);
 fwrite($a, $p);
 fclose($a);
 chmod(&quot;style.css&quot;, 0644);
}&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;fopen &lt;/b&gt;berfungsi membuka file &lt;b&gt;style.css&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;fwrite &lt;/b&gt;berfubgsi untuk menulis kode css kedalam file &lt;b&gt;style.css&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;fclose &lt;/b&gt;berfungsi untuk menutup perintah&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;chmod &lt;/b&gt;berfungsi untuk membaca path folder&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Potongan script dibawah ini, untuk menampilkan css yang sudah tersimpan di file &lt;b&gt;style.css&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt;echo &#39;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;style.css&quot;&amp;gt;&#39;;
$myfile = fopen(&quot;style.css&quot;, &quot;r&quot;) or die(&quot;Unable to open file!&quot;);
echo &#39;&amp;lt;br&amp;gt;&amp;lt;h1&amp;gt;EDITOR CSS&amp;lt;/h1&amp;gt;&#39;;
echo &#39;&amp;lt;form method=&quot;post&quot;&amp;gt;&#39;;
echo &#39;&amp;lt;center&amp;gt;&amp;lt;textarea name=&quot;editor&quot;&amp;gt;&#39;;while(!feof($myfile)) {echo fgets($myfile);}
echo &#39;&amp;lt;/textarea&amp;gt;&amp;lt;/center&amp;gt;
&amp;lt;center&amp;gt;&amp;lt;input type=&quot;submit&quot; name=&quot;cssedit&quot; value=&quot;SAVE CSS&quot;&amp;gt;&amp;lt;/center&amp;gt;
&amp;lt;/form&amp;gt;&#39;;
fclose($myfile);&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
Diatas adalah cara&amp;nbsp;&lt;b&gt;Membuat Editor CSS dengan Textarea, &lt;/b&gt;silakan dipelajari dan dipahami bila ada masalah dengan koding bisa komentar dibawah, semoga koding ini bermanfaat untuk anda yang membutuhkanya...Salam WriteCode Sampai jumpa ditutorial selanjutnya&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
Baca Juga :&amp;nbsp;&lt;a href=&quot;https://lacodeid.blogspot.co.id/2018/02/carousal-product-responsive-ponsel-dan.html&quot; rel=&quot;nofollow&quot;&gt;Carousal Product Responsive Ponsel dan Desktop&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='https://lacodeid.blogspot.com/feeds/7125559772294272043/comments/default' title='Posting Komentar'/><link rel='replies' type='text/html' href='https://lacodeid.blogspot.com/2018/02/membuat-editor-css-dengan-textarea.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/7125559772294272043'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/7125559772294272043'/><link rel='alternate' type='text/html' href='https://lacodeid.blogspot.com/2018/02/membuat-editor-css-dengan-textarea.html' title='Membuat Editor CSS dengan Textarea'/><author><name>Lacode</name><uri>http://www.blogger.com/profile/15545994188230698518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjReuytqC_zFQbZYIeFSZIqkcWy_iXyyQUCY-3yOLFZJaKeNzWIgpvqN-1-heZxYWW3tVSyvmN0F46GnTUQrwz3HNg1acCRaIB80L5DfoMQi3kPPaUObvqsdptywr9VA6qYJVc1njn-uxg/s72-c/editorcss.jpg" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Jakarta, Indonesia</georss:featurename><georss:point>-6.17511 106.86503949999997</georss:point><georss:box>-8.1968405 104.28325249999996 -4.1533795 109.44682649999997</georss:box></entry><entry><id>tag:blogger.com,1999:blog-3630068095685918406.post-7353931709772443059</id><published>2018-02-17T23:57:00.000+07:00</published><updated>2018-02-17T23:57:32.687+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="css"/><category scheme="http://www.blogger.com/atom/ns#" term="htaccess"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>Cara mencegah copy file css dengan php</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggTHY93lAVZt-oGuIp7LaduDESC3KNTR_NPeK8uf4Gg_jEbwdJiFP6kVbzUorv95XfcBHwO1Fw8A3WOXsbdrSMOzFNR9F0BDyN9sIgJSfWwHELU0Z0ARcbYi181HfWDsAE9wqSkdG0LQU/s1600/lacodeid.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;500&quot; data-original-width=&quot;800&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggTHY93lAVZt-oGuIp7LaduDESC3KNTR_NPeK8uf4Gg_jEbwdJiFP6kVbzUorv95XfcBHwO1Fw8A3WOXsbdrSMOzFNR9F0BDyN9sIgJSfWwHELU0Z0ARcbYi181HfWDsAE9wqSkdG0LQU/s640/lacodeid.jpg&quot; style=&quot;height: auto; width: 100%;&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Ditutorial kali ini WriteCode akan membahas&amp;nbsp;&lt;b&gt;Cara mencegah copy file css dengan php&lt;/b&gt;&lt;b&gt;,&lt;/b&gt;&amp;nbsp;bagi agan yang sering membuat design website yang sering berurusan dengan CSS pasti agak sedikit tidak suka file css nya dicopas dengan orang lain, cara ini mungkin bisa membantu anda supaya file css agan tidak mudah untuk dicopas dan dicuri begitu saja , pertama siapkan tiga buah file &lt;b&gt;index.php, style.php dan .htaccess, &lt;/b&gt;untuk kode file &lt;b&gt;index.php&lt;/b&gt; seperti dibawah ini :&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt;&amp;lt;?php
session_start();
$_SESSION[&#39;NameSession&#39;] = &quot;Key&quot;;
?&amp;gt;
&amp;lt;!doctype html&amp;gt;
&amp;lt;html lang=&quot;en&quot;&amp;gt;
&amp;lt;head&amp;gt;
 &amp;lt;meta charset=&quot;UTF-8&quot;&amp;gt;
 &amp;lt;title&amp;gt;Proteksi CSS Dengan PHP&amp;lt;/title&amp;gt;
 &amp;lt;meta name=&quot;description&quot; content=&quot;Preteksi CSS Dengan PHP&quot;/&amp;gt;
 &amp;lt;meta name=&quot;keywords&quot; content=&quot;Protection, CSS Guard, Script Guard, Protect File&quot;/&amp;gt;

 &amp;lt;style type=&quot;text/css&quot;&amp;gt;@import url(http://localhost/demo/php/protek-css/style.css);&amp;lt;/style&amp;gt;

&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
 &amp;lt;div class=&quot;container&quot;&amp;gt;
  &amp;lt;header&amp;gt;
   &amp;lt;h1&amp;gt;Cara mencegah copy file css dengan php&amp;lt;/h1&amp;gt;
  &amp;lt;/header&amp;gt;

  &amp;lt;section&amp;gt;
   Ini adalah contoh demo cara memproteksi css dengan php, untuk membuktikan apakah ini benar-benar memproteksi css maka silahkan buka &amp;lt;strong&amp;gt;View Source / View Page Source&amp;lt;/strong&amp;gt; dari browser kamu &amp;lt;br&amp;gt;
   Maka kita hanya akan mendapatkan lokasi file css, namun jika url itu kita buka, maka kita tidak akan mendapatkan kode cssnya, melainkan hanya tulisan &quot;CSS Protected&quot; &amp;lt;br&amp;gt;
   Hal ini dikarenakan file css sebenarnya adalah script php yang dimanipulasi namanya dengan bantuan .htaccess

  &amp;lt;/section&amp;gt;

  &amp;lt;section&amp;gt;
   &amp;lt;strong&amp;gt;Kelemahan&amp;lt;/strong&amp;gt; &amp;lt;br&amp;gt;
   Memproteksi memang sulit, masih ada kelemahan jika menggunakan firebug, karena memang sebenarnya file css itu sudah disimpan di komputer kita, namun hal ini cukup bisa diandalkan untuk menyulitkan orang yang main copy-paste melalui fitur view source
  &amp;lt;/section&amp;gt;
 &amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/pre&gt;
diatas script index.phpnya, selanjutnya untuk script kode style.php bisa anda copas dibawah ini :&lt;br /&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt;&amp;lt;?php
session_start();
header(&quot;Content-type: text/css&quot;); 
if($_SESSION[&#39;NameSession&#39;] != &quot;Key&quot; ){ die(&quot;CSS PROTECTED&quot;); }
$_SESSION[&#39;NameSession&#39;] = &quot;AnotherKey&quot;;
?&amp;gt;
*{
 margin:0; padding:0;
}
body{
 background: #EB984F;
 color: #34495E;
 line-height:1.5em;
}
a{
 color: #505F6E;
}
.container{
 width: 800px;
 margin:30px auto;
 background: #F4D03F;
}

header{
 padding: 30px;
 margin:10px;
}

section{
 padding: 30px;
 margin:10px;
}&lt;/pre&gt;
Copas lagi script .htaccess dibawah ini :&lt;br /&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt;RewriteEngine on
RewriteRule style.css style.php&lt;/pre&gt;
Script .htaccess ini berfungsi untuk menganti extensi &lt;b&gt;style.css&lt;/b&gt;&amp;nbsp;menjadi &lt;b&gt;style.php &lt;/b&gt;dengan menggunakan bantuan &lt;b&gt;session, &lt;/b&gt;untuk menggunakan file &lt;b&gt;style.css &lt;/b&gt;cukup mudah sererti dibawah ini :&lt;br /&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt;&amp;lt;style type=&quot;text/css&quot;&amp;gt;@import url(http://localhost/latihansaya/style.css);&amp;lt;/style&amp;gt;&lt;/pre&gt;
Sampai sejauh ini koding ini berjalan dengan normal bila anda kendala silakan komen, cara ini tidak sepenuhnya aman dari tukang copas CSS yang tanpa usaha setidaknya sudah memberi sedikit ruang keamanan pada file CSS anda, sekian tutorial&amp;nbsp;&lt;b&gt;Cara mencegah copy file css dengan php &lt;/b&gt;silakan dipelajari dan dikembangkan untuk kesempurnaan koding ini.&lt;br /&gt;
&lt;br /&gt;
sumber :&amp;nbsp;&lt;i&gt;http://www.tutorial-webdesign.com/proteksi-css-dengan-php/&lt;/i&gt;&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='https://lacodeid.blogspot.com/feeds/7353931709772443059/comments/default' title='Posting Komentar'/><link rel='replies' type='text/html' href='https://lacodeid.blogspot.com/2018/02/cara-mencegah-copy-file-css-dengan-php.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/7353931709772443059'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/7353931709772443059'/><link rel='alternate' type='text/html' href='https://lacodeid.blogspot.com/2018/02/cara-mencegah-copy-file-css-dengan-php.html' title='Cara mencegah copy file css dengan php'/><author><name>Lacode</name><uri>http://www.blogger.com/profile/15545994188230698518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggTHY93lAVZt-oGuIp7LaduDESC3KNTR_NPeK8uf4Gg_jEbwdJiFP6kVbzUorv95XfcBHwO1Fw8A3WOXsbdrSMOzFNR9F0BDyN9sIgJSfWwHELU0Z0ARcbYi181HfWDsAE9wqSkdG0LQU/s72-c/lacodeid.jpg" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Jakarta, Indonesia</georss:featurename><georss:point>-6.17511 106.86503949999997</georss:point><georss:box>-8.1968405 104.28325249999996 -4.1533795 109.44682649999997</georss:box></entry><entry><id>tag:blogger.com,1999:blog-3630068095685918406.post-1462034912151103775</id><published>2018-02-17T22:38:00.000+07:00</published><updated>2018-02-22T13:38:12.116+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="css"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>Cara update style css dengan php</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9-8tTeOL6q2IDb8Z0VHoZY4IyPoIxYNb3XgrQVKE2JRUCIjg7YDHGwlCsEd8P4Kf47s9XRmk69dZ_pN5er43HmgixKaR8loS7fza4yJc9wnWfWTS3_KwK_uTK6E6KhJMbMFoNic1LkPQ/s1600/php-reasons-hate.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;900&quot; data-original-width=&quot;1600&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9-8tTeOL6q2IDb8Z0VHoZY4IyPoIxYNb3XgrQVKE2JRUCIjg7YDHGwlCsEd8P4Kf47s9XRmk69dZ_pN5er43HmgixKaR8loS7fza4yJc9wnWfWTS3_KwK_uTK6E6KhJMbMFoNic1LkPQ/s640/php-reasons-hate.png&quot; style=&quot;height: auto; width: 100%;&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Ditutorial kali ini WriteCode akan membahas&amp;nbsp;&lt;b&gt;Cara update style css dengan php&lt;/b&gt;, bagi agan yang sering menggunakan wordpress pasti sering mengedit style css dengan texteditor tanpa anda harus kembali ke file style.css baik menambahi atau menggurangi isi file itu sndiri, hal ini akan membuat pekerjaan dalam mengedit file css sedikit lebih mudah, untuk membuat ini pertama silakan agan buat buah file &lt;b&gt;style.css&lt;/b&gt;,&amp;nbsp;&lt;b&gt;edit_css.php &lt;/b&gt;dalam folder latihan agan&lt;b&gt;, &lt;/b&gt;untuk kodingannya seperti dibawah ini :&lt;br /&gt;
&lt;br /&gt;
Letakan kodingan dibawah ini kedalam file &lt;b&gt;edit_css.php &lt;/b&gt;file ini nantinya yang akan membaca dan menulis css kedalam &lt;b&gt;style.css&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
Baca Juga :&amp;nbsp;&lt;a href=&quot;https://lacodeid.blogspot.co.id/2017/12/validasi-cek-form-inputan-text-empty.html&quot; rel=&quot;nofollow&quot;&gt;Validasi cek form inputan text empty dengan jquery&lt;/a&gt;&lt;br /&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt;&amp;lt;?php
$p=&quot;
body{margin-left:0; margin-right:0; margin-top:0;text-align:left}\n
p, li {font:13px Verdana; color:black;text-align:left;margin-top:0.2em;margin-bottom:0}\n
h1 {font:bold 28px Verdana; color:black;text-align:center}\n
h2 {font:bold 24px Verdana;text-align:center}\n
h3 {font:bold 15px Verdana;}\n
.a {font:bold 13px Verdana; margin:0 25px 0 0;}\n
.b {font:bold 13px Verdana; margin:10px 25px 0 0;}\n
.c {width:100%; margin:0; padding:0;}\n
.d {position:absolute; left:0px; top:100px; width:200px; margin:0; padding:10px; background-color:#cccccc; border:2px solid #000; font:bold 11px Verdana;}\n
.e {position:absolute; left:25%; top:100px; width:74.9%; height:20px; margin:0; padding:0 0 0 20px; background-color:#cccccc; border:2px solid #000; font:bold 11px Verdana;}\n
.f {position:absolute; left:5px; top:5px; width:233px; height:91px; margin:0; color:darkorange; font:bold 11px Courier; padding:0; z-index:10; background-image:url(&#39;logo1.jpg&#39;); background-repeat:no-repeat; line-height:0.88em; text-align:right;}\n
.g {color:blue; border:1px solid blue;padding:5px}\n
.ad {position:absolute;width:145px;top:150px;left:857px;text-align:left}\n
.main {position:absolute;width:560px;top:150px;left:270px;padding:10px;text-align:left}\n
textarea {width: 100%;height: 500px;}\n
&quot;;
$a = fopen(&quot;style.css&quot;, &#39;w&#39;);
fwrite($a, $p);
fclose($a);
chmod(&quot;style.css&quot;, 0644);
echo &#39;&amp;lt;link href=&quot;style.css&quot; rel=&quot;stylesheet&quot;&amp;gt;&#39;;
echo &quot;&amp;lt;textarea&amp;gt;&quot;.$p.&quot;&amp;lt;/textarea&amp;gt;&quot;;&lt;/pre&gt;
&lt;div&gt;
&lt;i&gt;fopen &lt;/i&gt;berfungsi untuk membuka file style.css.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;fwrite &lt;/i&gt;berfungsi untuk menulis file css kedalam style.css.&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;chmod &lt;/i&gt;membaca letak file style.css dalam folder.&lt;br /&gt;
&lt;br /&gt;
Baca Juga :&amp;nbsp;&lt;a href=&quot;https://lacodeid.blogspot.co.id/2017/10/cara-mudah-crud-dengan-pdo-php.html&quot; rel=&quot;nofollow&quot;&gt;Cara mudah membuat CRUD dengan PDO php&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Diatas cara&amp;nbsp;&lt;b&gt;Cara update style css dengan php &lt;/b&gt;silakan dikembangkan dan dipelajari, semoga tutorial singkat ini bisa membantu anda yang lagi mencari cara untuk mengedit file style.css dengan php.&lt;br /&gt;
&lt;br /&gt;
Baca Juga :&amp;nbsp;&lt;a href=&quot;https://lacodeid.blogspot.co.id/2017/11/cara-membuat-class-crud-php-mysql.html&quot; rel=&quot;nofollow&quot;&gt;Cara membuat class crud php mysql&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://lacodeid.blogspot.com/feeds/1462034912151103775/comments/default' title='Posting Komentar'/><link rel='replies' type='text/html' href='https://lacodeid.blogspot.com/2018/02/cara-update-style-css-dengan-php.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/1462034912151103775'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/1462034912151103775'/><link rel='alternate' type='text/html' href='https://lacodeid.blogspot.com/2018/02/cara-update-style-css-dengan-php.html' title='Cara update style css dengan php'/><author><name>Lacode</name><uri>http://www.blogger.com/profile/15545994188230698518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9-8tTeOL6q2IDb8Z0VHoZY4IyPoIxYNb3XgrQVKE2JRUCIjg7YDHGwlCsEd8P4Kf47s9XRmk69dZ_pN5er43HmgixKaR8loS7fza4yJc9wnWfWTS3_KwK_uTK6E6KhJMbMFoNic1LkPQ/s72-c/php-reasons-hate.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Jakarta, Indonesia</georss:featurename><georss:point>-6.17511 106.86503949999997</georss:point><georss:box>-8.1968405 104.28325249999996 -4.1533795 109.44682649999997</georss:box></entry><entry><id>tag:blogger.com,1999:blog-3630068095685918406.post-4013524911855526556</id><published>2018-02-15T21:16:00.000+07:00</published><updated>2018-02-20T20:18:50.706+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Bootstrap"/><category scheme="http://www.blogger.com/atom/ns#" term="css"/><category scheme="http://www.blogger.com/atom/ns#" term="HTML"/><title type='text'>HTML CSS Produk Mobile Responsive</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyasRA6xj2iv_ybX2mLnCkipIQ3Q1eHZxj2si0BhMCKEBT2MhpPy70Th4fieHwFJ4Wd8ZusLi3yXBWLQAJa0W310VRQnv4Yzm7z3DiQcbU6Ad-D25m987NcUYJHHjRTQNbdc5dgfJxQwA/s1600/pr.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;443&quot; data-original-width=&quot;1012&quot; height=&quot;280&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyasRA6xj2iv_ybX2mLnCkipIQ3Q1eHZxj2si0BhMCKEBT2MhpPy70Th4fieHwFJ4Wd8ZusLi3yXBWLQAJa0W310VRQnv4Yzm7z3DiQcbU6Ad-D25m987NcUYJHHjRTQNbdc5dgfJxQwA/s640/pr.jpg&quot; style=&quot;height: auto; width: 100%;&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Ditutorial kali ini WriteCode akan membuat tutorial dengan judul&amp;nbsp;HTML CSS &lt;a href=&quot;http://lacodeid.blogspot.com/2018/02/carousal-product-responsive-ponsel-dan.html&quot; rel=&quot;nofollow&quot;&gt;Produk Mobile Responsive&lt;/a&gt;, ditulisan yang sederhana ini kami berbagi kepada anda yang membutuhkan ilmu dari kami WriteCode yang sederhana ini, tanpa menunda waktu yang panjang bisa langsung anda praktikkan dilembar kerja agan langsung saja kita menuju TKP&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 1&lt;/b&gt;&lt;br /&gt;
Silakan copas kode style CSSnya dibawah ini letakan didalam tag &amp;lt;head&amp;gt; letakan dimana agan suka:&lt;br /&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt;&amp;lt;style class=&quot;cp-pen-styles&quot;&amp;gt;.slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.slider__slides {
  position: relative;
  width: 300%;
  height: 100%;
  -webkit-transition: -webkit-transform 0.6s cubic-bezier(0.51, 0.92, 0.24, 1);
  transition: -webkit-transform 0.6s cubic-bezier(0.51, 0.92, 0.24, 1);
  transition: transform 0.6s cubic-bezier(0.51, 0.92, 0.24, 1);
  transition: transform 0.6s cubic-bezier(0.51, 0.92, 0.24, 1), -webkit-transform 0.6s cubic-bezier(0.51, 0.92, 0.24, 1);
  will-change: transform;
}

.slider__slide {
  float: left;
  width: 33.33333%;
  height: 100%;
}
.slider__dots {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  position: absolute;
  bottom: 1.5em;
  left: 50%;
  top: 70px;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
}
.slider__dot, .slider__indicator {
  display: block;
  margin: 0 0.5em;
  width: 0.5em;
  height: 0.5em;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 100px;
}
.slider__indicator {
  position: absolute;
  background: white;
  /*width: auto;*/
}
.slider__indicator--left {
  -webkit-transition: left 0.6s cubic-bezier(0.51, 0.92, 0.24, 1.15), right 0.6s 0.1s cubic-bezier(0.51, 0.92, 0.24, 1.15);
  transition: left 0.6s cubic-bezier(0.51, 0.92, 0.24, 1.15), right 0.6s 0.1s cubic-bezier(0.51, 0.92, 0.24, 1.15);
}
.slider__indicator--right {
  -webkit-transition: left 0.6s 0.1s cubic-bezier(0.51, 0.92, 0.24, 1.15), right 0.6s cubic-bezier(0.51, 0.92, 0.24, 1.15);
  transition: left 0.6s 0.1s cubic-bezier(0.51, 0.92, 0.24, 1.15), right 0.6s cubic-bezier(0.51, 0.92, 0.24, 1.15);
}

.content[data-pos=&quot;0&quot;] .slider__slides {
  -webkit-transform: translateX(0%);
          transform: translateX(0%);
}
.content[data-pos=&quot;1&quot;] .slider__slides {
  -webkit-transform: translateX(-33.33333%);
          transform: translateX(-33.33333%);
}
.content[data-pos=&quot;2&quot;] .slider__slides {
  -webkit-transform: translateX(-66.66667%);
          transform: translateX(-66.66667%);
}

.content[data-pos=&quot;0&quot;] .slider__indicator {
  left: 0em;
  right: 4em;
}
.content[data-pos=&quot;1&quot;] .slider__indicator {
  left: 1.5em;
  right: 2em;
}
.content[data-pos=&quot;2&quot;] .slider__indicator {
  left: 3em;
  right: 0em;
}

.content[data-pos=&quot;0&quot;] .slider__slide:nth-child(1) .picture span {
  left: -160px;
}
.content[data-pos=&quot;1&quot;] .slider__slide:nth-child(2) .picture span {
  left: -140px;
}
.content[data-pos=&quot;2&quot;] .slider__slide:nth-child(3) .picture span {
  left: -85px;
}

.content[data-pos=&quot;0&quot;] .slider__slide:nth-child(1) .buttons {
  display: block;
}
.content[data-pos=&quot;1&quot;] .slider__slide:nth-child(2) .buttons {
  display: block;
}
.content[data-pos=&quot;2&quot;] .slider__slide:nth-child(3) .buttons {
  display: block;
}

.content[data-pos=&quot;0&quot;] .slider__slide:nth-child(1) .dropdown {
  display: block;
}
.content[data-pos=&quot;1&quot;] .slider__slide:nth-child(2) .dropdown {
  display: block;
}
.content[data-pos=&quot;2&quot;] .slider__slide:nth-child(3) .dropdown {
  display: block;
}

.content[data-pos=&quot;0&quot;] &amp;gt; div {
  background-color: rgba(255, 87, 34,.65);
}
.content[data-pos=&quot;1&quot;] &amp;gt; div {
  background-color: rgba(13,148,20,.4);
}
.content[data-pos=&quot;2&quot;] &amp;gt; div {
  background-color: rgba(209,27,27,.65);
}

body {
  font-family: &#39;Open Sans&#39;, sans-serif;
  overflow-x: hidden;
  background-color: #f3f3f3;
}

.wrapper {
  background-color: #f8f8f8;
  display: flex;
  max-height: 736px;
  height: 736px;
  width: 414px;
  margin: 10px auto;
  /*border: solid 2px #aaa;*/
  box-shadow: 0px 2px 15px #ddd;
  border-radius: 3px;
}

.sidebar {
  max-height: 736px;
  height: 736px;
  width: 250px;
  position: absolute;
  padding: 0 10px;
}

.sidebar .brand {
  font-family: &#39;Nunito&#39;, sans-serif;
  font-weight: 900;
  font-size: 3.5em;
  /*http://www.cssmatic.com/es/gradient-generator*/
  background: linear-gradient(to right, 
    rgba(209,27,27,1) 0%, 
    rgba(209,27,27,1) 1%, 
    rgba(248,80,50,1) 20%, 
    rgba(13,148,20,1) 50%, 
    rgba(230,202,60,1) 77%, 
    rgba(230,143,12,1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  position: absolute;
  top: 10px;
  left: 30px;
}

.sidebar .menu { 
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center; 
}

.sidebar .menu ul {
  padding-left: 0;
}

.sidebar .menu .glyph-icon {
  font-weight: 700;
  margin-right: 20px;
  vertical-align: middle;
}

.sidebar .menu .flaticon-mail {
  font-weight: 400;
}

.sidebar ul li {
  color: #777;
  line-height: 3;
  list-style: none;
  font-family: &#39;Montserrat&#39;, sans-serif;
}

.content {
  flex: 1;
  transform: translateX(0) scale(1);
  animation: shrink-off .4s ease-out;
  background: linear-gradient(to right, #666 0%, #FFEB3B 100%);
}

.content.shrink {
  box-shadow: -2px 2px 20px #ddd;
  transform: translateX(250px) scale(.95);
  animation: shrink-on .4s ease-out;
}

.content &amp;gt; div { 
  position: relative;
  transition: background-color 0.8s ease; 
}

.content #openMenu { 
  cursor: pointer; 
  position: absolute;
  top: 10px;
  left: 10px;
}

.content #openMenu &amp;gt; div { 
  width: 20px; 
  border: solid #fff 1px;
  margin-bottom: 5px; 
}

.content #openMenu &amp;gt; div:nth-child(2) { width: 15px; }

.content #shoppingIcon {
  color: #fff;
  position: absolute;
  top: 10px;
  right: -10px;
  transform: rotateY(180deg);
}

.content .flaticon-cart:before { font-size: 24px }

.content #shoppingIcon span {
  color: #fff;
  background-color: red;
  padding: 1px 6px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  position: absolute;
  left: 35px;
  top: -4px;
  transform: rotateY(180deg);
}

.content .header {
  color: #fff;
  height: 100px;
  text-align: center;
  padding-top: 5px;
  letter-spacing: 1;
}

.content .header h3 {
  margin: 0;
  margin-bottom: 3px;
  font-weight: 100;
}

.content .triangle {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 100px 414px 0 0;
  border-color: transparent #fff transparent transparent;
  margin-top: -1px;
}

.content .product {
  height: 448px;
  width: 100%;
  background-color: #fff;
}

.slider { position: absolute; top: 100px; height: 554px; }
.picture { position: relative; margin: 0 15px; }
.picture img { height: 362px; margin-left: 70px; position: relative; }
.title { position: relative; color: #777; margin: 0 15px; }
.title h3 { margin-bottom: 5px; font-family: &#39;Montserrat&#39;, sans-serif; letter-spacing: 1; }
.title span { color: green; font-weight: bold; margin-right: 5px; }
.description { color: #999; margin: 15px 15px; font-size: 14px; }
.picture span { 
  position: absolute;
    top: 160px;
    left: -20px;
    font-size: 10em;
    color: #ededed;
    font-family: &quot;Montserrat&quot;, sans-serif;
    font-weight: 900;
    letter-spacing: 4;
    text-transform: uppercase;
    transition: all .8s ease-in-out;
}
.buttons {
  display: none;
  position: absolute;
    top: 70px;
    right: 20px;
    animation: scale-up .8s ease;
}
.buttons &amp;gt; div {
  margin-bottom: 30px;
    border: solid 2px #ddd;
    padding: 10px 12px 10px 10px;
    border-radius: 50px;
    cursor: pointer;
}
.buttons &amp;gt; div:before { 
  font-size: 25px;
    font-weight: 600;
    color: #888;
    margin-left: 0;
    transition: color .6s ease-out;
}

.buttons &amp;gt; div:nth-child(1).selected { border-color: #F44336; }
.buttons &amp;gt; div:nth-child(1).selected:before { color: #F44336; }
.buttons &amp;gt; div:nth-child(2).selected { border-color: #2196F3; }
.buttons &amp;gt; div:nth-child(2).selected:before { color: #2196F3; }

.content .price {
  height: 80px;
  width: 100%;
  background-color: #fff;
  border-top: solid #ddd 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.content .price &amp;gt; div {
  margin: 0 20px;
}

.content .price span {
  font-size: 30px;
  color: #00BC34;
}

.content .price a {
  font-size: 20px;
  background-color: #00BC34;
  color: #fff;
  text-decoration: none;
  padding: 8px 35px;
  border-radius: 50px;
}

.content .price a:hover { background-color: #00a52e; }

.no-animation {
  animation: none !important;
}

@keyframes shrink-on {
  0% {
    transform: translateX(0) scale(1);
  }
  70% {
    transform: translateX(250px) scale(.9);
  }
  100% {
    transform: translateX(250px) scale(.95);
  }
}

@keyframes shrink-off {
  0% {
    transform: translateX(250px) scale(.95);
  }
  70% {
    transform: translateX(-10px) scale(1.05);
  }
  100% {
    transform: translateX(0) scale(1);
  }
}

@keyframes scale-up {
  0% {
    transform: scale(0);
  }
  70% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}


.slider .dropdown { 
  position: absolute; 
  top: 0; 
  right: 20px; 
  font-family: &quot;Montserrat&quot;, sans-serif; 
  animation: scale-up .8s ease;
}
/** Dropdown **/
.dropdown {
  display: none;
  position: relative;
  width: 100px;
  color: #fff;
  transform-style: preserve-3d;
  perspective: 1500;
}
.dropdown.flip .front {
  transform: rotateX(180deg);
}
.dropdown.flip .back {
  transform: rotateX(0deg);
}
.dropdown .front,
.dropdown .back {
  transition: all 0.4s ease;
}
.dropdown .front {
  height: 40px;
  width: 90px;
  backface-visibility: hidden;
  cursor: pointer;
  border: solid 2px #ddd;
  border-radius: 50px;
  line-height: 40px;
  text-align: center;
  color: #888;
  margin-left: 5px;
}
.dropdown .front:after {
  content: &quot;&quot;;
  position: relative;
  top: 15px;
  left: 4px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #888;
}
.dropdown .back {
  transform: rotateX(180deg);
  backface-visibility: hidden;
}
.dropdown ul {
  position: absolute;
  top: -120px;
  z-index: 1;
  width: calc(100% - 40px);
  padding: 20px;
  background-color: #fff;
  box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.25);
  list-style: none;
  border-radius: 3px;
}
.dropdown ul li {
  color: #888;
  line-height: 30px;
  cursor: pointer;
}

&amp;lt;/style&amp;gt;&lt;/pre&gt;
Step 2&lt;br /&gt;
Copas lagi kode HTML dibawah ini kedalam lembar kerja agan :&lt;br /&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt;div class=&quot;wrapper&quot;&amp;gt;
      &amp;lt;div class=&quot;sidebar&quot;&amp;gt;
        &amp;lt;div class=&quot;brand&quot;&amp;gt;JUUCE&amp;lt;/div&amp;gt;
        &amp;lt;div class=&quot;menu&quot;&amp;gt;
          &amp;lt;ul&amp;gt;
            &amp;lt;li&amp;gt;&amp;lt;i class=&quot;glyph-icon flaticon-user&quot;&amp;gt;&amp;lt;/i&amp;gt; Profile&amp;lt;/li&amp;gt;
            &amp;lt;li&amp;gt;&amp;lt;i class=&quot;glyph-icon flaticon-like&quot;&amp;gt;&amp;lt;/i&amp;gt; Wish list&amp;lt;/li&amp;gt;
            &amp;lt;li&amp;gt;&amp;lt;i class=&quot;glyph-icon flaticon-like-1&quot;&amp;gt;&amp;lt;/i&amp;gt; Why buy juuce?&amp;lt;/li&amp;gt;
            &amp;lt;li&amp;gt;&amp;lt;i class=&quot;glyph-icon flaticon-vision&quot;&amp;gt;&amp;lt;/i&amp;gt; About us&amp;lt;/li&amp;gt;
            &amp;lt;li&amp;gt;&amp;lt;i class=&quot;glyph-icon flaticon-mail&quot;&amp;gt;&amp;lt;/i&amp;gt; Contact us&amp;lt;/li&amp;gt;
            &amp;lt;li&amp;gt;&amp;lt;i class=&quot;glyph-icon flaticon-info&quot;&amp;gt;&amp;lt;/i&amp;gt; FAQ&amp;lt;/li&amp;gt;
          &amp;lt;/ul&amp;gt;
        &amp;lt;/div&amp;gt;
      &amp;lt;/div&amp;gt;

      &amp;lt;div class=&quot;content no-animation&quot; data-pos=&quot;0&quot;&amp;gt;
        &amp;lt;div&amp;gt;

          &amp;lt;div id=&quot;openMenu&quot;&amp;gt;
            &amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;
            &amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;
            &amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;
          &amp;lt;/div&amp;gt;
          &amp;lt;div id=&quot;shoppingIcon&quot;&amp;gt;
            &amp;lt;span&amp;gt;4&amp;lt;/span&amp;gt;
            &amp;lt;i class=&quot;glyph-icon flaticon-cart&quot;&amp;gt;&amp;lt;/i&amp;gt;
          &amp;lt;/div&amp;gt;
          &amp;lt;div class=&quot;header&quot;&amp;gt;
            &amp;lt;h3&amp;gt;Cold pressed juices&amp;lt;/h3&amp;gt;
            &amp;lt;small&amp;gt;shop category&amp;lt;/small&amp;gt;
          &amp;lt;/div&amp;gt;
          &amp;lt;div class=&quot;triangle&quot;&amp;gt;&amp;lt;/div&amp;gt;
          
          &amp;lt;div class=&quot;product&quot;&amp;gt;
            &amp;lt;div class=&quot;slider__dots&quot;&amp;gt;
              &amp;lt;a href=&quot;#&quot; class=&quot;slider__dot&quot; data-pos=&quot;0&quot;&amp;gt;&amp;lt;/a&amp;gt;
              &amp;lt;a href=&quot;#&quot; class=&quot;slider__dot&quot; data-pos=&quot;1&quot;&amp;gt;&amp;lt;/a&amp;gt;
              &amp;lt;a href=&quot;#&quot; class=&quot;slider__dot&quot; data-pos=&quot;2&quot;&amp;gt;&amp;lt;/a&amp;gt;
              &amp;lt;a href=&quot;#&quot; class=&quot;slider__indicator&quot;&amp;gt;&amp;lt;/a&amp;gt;
            &amp;lt;/div&amp;gt;
          &amp;lt;/div&amp;gt;
          
          &amp;lt;div class=&quot;price&quot;&amp;gt;
            &amp;lt;div&amp;gt;&amp;lt;span&amp;gt;€ 3.00&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;
            &amp;lt;div&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;Add to cart&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;  
          &amp;lt;/div&amp;gt;

          &amp;lt;div class=&quot;slider&quot; data-pos=&quot;0&quot;&amp;gt;
            &amp;lt;div class=&quot;slider__slides&quot;&amp;gt;

              &amp;lt;div class=&quot;slider__slide&quot;&amp;gt;
                &amp;lt;div class=&quot;picture&quot;&amp;gt;
                  &amp;lt;span&amp;gt;ster&amp;lt;/span&amp;gt;&amp;lt;img src=&quot;https://github.com/emoreno911/UI-to-Code/blob/master/juuce_app/img/bottle3x.png?raw=true&quot;&amp;gt;
                  &amp;lt;div class=&quot;buttons&quot;&amp;gt;
                    &amp;lt;div class=&quot;glyph-icon flaticon-like&quot;&amp;gt;&amp;lt;/div&amp;gt;
                    &amp;lt;div class=&quot;glyph-icon flaticon-arrows&quot;&amp;gt;&amp;lt;/div&amp;gt;
                    &amp;lt;div class=&quot;glyph-icon flaticon-share&quot;&amp;gt;&amp;lt;/div&amp;gt;
                  &amp;lt;/div&amp;gt;
                &amp;lt;/div&amp;gt;
                &amp;lt;div class=&quot;title&quot;&amp;gt;
                  &amp;lt;h3&amp;gt;Booster&amp;lt;/h3&amp;gt;&amp;lt;small&amp;gt;&amp;lt;span&amp;gt;✔&amp;lt;/span&amp;gt; In Stock&amp;lt;/small&amp;gt;
                  &amp;lt;div class=&quot;dropdown&quot;&amp;gt;
                    &amp;lt;div class=&quot;front&quot;&amp;gt; 250 ml &amp;lt;/div&amp;gt;
                    &amp;lt;div class=&quot;back&quot;&amp;gt; 
                      &amp;lt;ul&amp;gt;
                        &amp;lt;li&amp;gt;250 ml&amp;lt;/li&amp;gt;
                        &amp;lt;li&amp;gt;500 ml&amp;lt;/li&amp;gt;
                        &amp;lt;li&amp;gt;1 lt&amp;lt;/li&amp;gt;
                      &amp;lt;/ul&amp;gt;
                    &amp;lt;/div&amp;gt;
                  &amp;lt;/div&amp;gt;
                &amp;lt;/div&amp;gt;
                &amp;lt;div class=&quot;description&quot;&amp;gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation&amp;lt;/div&amp;gt;
              &amp;lt;/div&amp;gt;
              &amp;lt;div class=&quot;slider__slide&quot;&amp;gt;
                &amp;lt;div class=&quot;picture&quot;&amp;gt;
                  &amp;lt;span&amp;gt;Fuel&amp;lt;/span&amp;gt; &amp;lt;img src=&quot;https://github.com/emoreno911/UI-to-Code/blob/master/juuce_app/img/bottle2x.png?raw=true&quot;&amp;gt;
                  &amp;lt;div class=&quot;buttons&quot;&amp;gt;
                    &amp;lt;div class=&quot;glyph-icon flaticon-like&quot;&amp;gt;&amp;lt;/div&amp;gt;
                    &amp;lt;div class=&quot;glyph-icon flaticon-arrows&quot;&amp;gt;&amp;lt;/div&amp;gt;
                    &amp;lt;div class=&quot;glyph-icon flaticon-share&quot;&amp;gt;&amp;lt;/div&amp;gt;
                  &amp;lt;/div&amp;gt;
                &amp;lt;/div&amp;gt;
                &amp;lt;div class=&quot;title&quot;&amp;gt;
                  &amp;lt;h3&amp;gt;Rocket Fuel&amp;lt;/h3&amp;gt;&amp;lt;small&amp;gt;&amp;lt;span&amp;gt;✔&amp;lt;/span&amp;gt; In Stock&amp;lt;/small&amp;gt;
                  &amp;lt;div class=&quot;dropdown&quot;&amp;gt;
                    &amp;lt;div class=&quot;front&quot;&amp;gt; 250 ml &amp;lt;/div&amp;gt;
                    &amp;lt;div class=&quot;back&quot;&amp;gt; 
                      &amp;lt;ul&amp;gt;
                        &amp;lt;li&amp;gt;250 ml&amp;lt;/li&amp;gt;
                        &amp;lt;li&amp;gt;500 ml&amp;lt;/li&amp;gt;
                        &amp;lt;li&amp;gt;1 lt&amp;lt;/li&amp;gt;
                      &amp;lt;/ul&amp;gt;
                    &amp;lt;/div&amp;gt;
                  &amp;lt;/div&amp;gt;
                &amp;lt;/div&amp;gt;
                &amp;lt;div class=&quot;description&quot;&amp;gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation&amp;lt;/div&amp;gt;
              &amp;lt;/div&amp;gt;
              &amp;lt;div class=&quot;slider__slide&quot;&amp;gt;
                &amp;lt;div class=&quot;picture&quot;&amp;gt;
                  &amp;lt;span&amp;gt;Red&amp;lt;/span&amp;gt;&amp;lt;img src=&quot;https://github.com/emoreno911/UI-to-Code/blob/master/juuce_app/img/bottle1x.png?raw=true&quot;&amp;gt;
                  &amp;lt;div class=&quot;buttons&quot;&amp;gt;
                    &amp;lt;div class=&quot;glyph-icon flaticon-like&quot;&amp;gt;&amp;lt;/div&amp;gt;
                    &amp;lt;div class=&quot;glyph-icon flaticon-arrows&quot;&amp;gt;&amp;lt;/div&amp;gt;
                    &amp;lt;div class=&quot;glyph-icon flaticon-share&quot;&amp;gt;&amp;lt;/div&amp;gt;
                  &amp;lt;/div&amp;gt;
                &amp;lt;/div&amp;gt;
                &amp;lt;div class=&quot;title&quot;&amp;gt;
                  &amp;lt;h3&amp;gt;Big Red&amp;lt;/h3&amp;gt;&amp;lt;small&amp;gt;&amp;lt;span&amp;gt;✔&amp;lt;/span&amp;gt; In Stock&amp;lt;/small&amp;gt;
                  &amp;lt;div class=&quot;dropdown&quot;&amp;gt;
                    &amp;lt;div class=&quot;front&quot;&amp;gt; 250 ml &amp;lt;/div&amp;gt;
                    &amp;lt;div class=&quot;back&quot;&amp;gt; 
                      &amp;lt;ul&amp;gt;
                        &amp;lt;li&amp;gt;250 ml&amp;lt;/li&amp;gt;
                        &amp;lt;li&amp;gt;500 ml&amp;lt;/li&amp;gt;
                        &amp;lt;li&amp;gt;1 lt&amp;lt;/li&amp;gt;
                      &amp;lt;/ul&amp;gt;
                    &amp;lt;/div&amp;gt;
                  &amp;lt;/div&amp;gt;
                &amp;lt;/div&amp;gt;
                &amp;lt;div class=&quot;description&quot;&amp;gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation&amp;lt;/div&amp;gt;
              &amp;lt;/div&amp;gt;

            &amp;lt;/div&amp;gt;
          &amp;lt;/div&amp;gt;

        &amp;lt;/div&amp;gt;
      &amp;lt;/div&amp;gt;
      
    &amp;lt;/div&amp;gt;&lt;/pre&gt;
Step 3&lt;br /&gt;
Copas Javascript dibawah ini letakan didalam tag &amp;lt;body&amp;gt; untuk kodenya dibawah ini :&lt;br /&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt;&amp;lt;script &amp;gt;/** https://github.com/emoreno911/UI-to-Code/tree/master/juuce_app **/
&#39;use strict&#39;;

var dots = 3;
var contentElem = document.querySelector(&#39;.content&#39;);
var dotElems = document.querySelectorAll(&#39;.slider__dot&#39;);
var indicatorElem = document.querySelector(&#39;.slider__indicator&#39;);
Array.prototype.forEach.call(dotElems, function (dotElem) {
    dotElem.addEventListener(&#39;click&#39;, function (e) {
        var currentPos = parseInt(contentElem.getAttribute(&#39;data-pos&#39;));
        var newPos = parseInt(dotElem.getAttribute(&#39;data-pos&#39;));
        var newDirection = newPos &amp;gt; currentPos ? &#39;right&#39; : &#39;left&#39;;
        var currentDirection = newPos &amp;lt; currentPos ? &#39;right&#39; : &#39;left&#39;;
        indicatorElem.classList.remove(&#39;slider__indicator--&#39; + currentDirection);
        indicatorElem.classList.add(&#39;slider__indicator--&#39; + newDirection);
        contentElem.setAttribute(&#39;data-pos&#39;, newPos);
    });
});

// Hammer.js for touch gestures
var hammertime = new Hammer(contentElem);

// listen to touch events...
hammertime.on(&quot;swipeleft swiperight&quot;, function(evt) {
    var currentPos = parseInt(contentElem.getAttribute(&#39;data-pos&#39;)),
        newPos;
    
    if(evt.type == &#39;swipeleft&#39;)
        newPos = (currentPos + 1 &amp;gt; 2)? currentPos : currentPos + 1; 
    else if (evt.type == &#39;swiperight&#39;)
        newPos = (currentPos - 1 &amp;lt; 0)? currentPos : currentPos - 1;

    if(newPos != currentPos) {
        var newDirection = newPos &amp;gt; currentPos ? &#39;right&#39; : &#39;left&#39;;
        var currentDirection = newPos &amp;lt; currentPos ? &#39;right&#39; : &#39;left&#39;;
        indicatorElem.classList.remove(&#39;slider__indicator--&#39; + currentDirection);
        indicatorElem.classList.add(&#39;slider__indicator--&#39; + newDirection);
        contentElem.setAttribute(&#39;data-pos&#39;, newPos);
    }
});

/** Events **/
$(&#39;#openMenu&#39;).on(&#39;click&#39;, function(evt) {
  $(&#39;.content&#39;)
    .removeClass(&#39;no-animation&#39;) //disable initial animation
    .toggleClass(&#39;shrink&#39;);
});

$(&#39;.buttons &amp;gt; div&#39;).on(&#39;click&#39;, function(evt) {
  $(this).toggleClass(&#39;selected&#39;);
});


$(&quot;.dropdown&quot;).on(&quot;click&quot;, function(){
  $(this).toggleClass(&quot;flip&quot;);
})

$(&quot;.back ul li&quot;).on(&quot;click&quot;, function(){
    var val = $(this).text();
  $(this).closest(&#39;.dropdown&#39;).find(&#39;.front&#39;).text(val);
});
//# sourceURL=pen.js
&amp;lt;/script&amp;gt;&lt;/pre&gt;
Diatas step step cara membuat&amp;nbsp;HTML CSS Produk Mobile Responsive, silakan dikerjakan dan dipahami kalo sudah bisa jangan banga dulu karena perjalanan kita masih panjang untuk mencapai hasil yang maksimal, salam WriteCode.</content><link rel='replies' type='application/atom+xml' href='https://lacodeid.blogspot.com/feeds/4013524911855526556/comments/default' title='Posting Komentar'/><link rel='replies' type='text/html' href='https://lacodeid.blogspot.com/2018/02/html-css-produk-mobile-responsive.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/4013524911855526556'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/4013524911855526556'/><link rel='alternate' type='text/html' href='https://lacodeid.blogspot.com/2018/02/html-css-produk-mobile-responsive.html' title='HTML CSS Produk Mobile Responsive'/><author><name>Lacode</name><uri>http://www.blogger.com/profile/15545994188230698518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyasRA6xj2iv_ybX2mLnCkipIQ3Q1eHZxj2si0BhMCKEBT2MhpPy70Th4fieHwFJ4Wd8ZusLi3yXBWLQAJa0W310VRQnv4Yzm7z3DiQcbU6Ad-D25m987NcUYJHHjRTQNbdc5dgfJxQwA/s72-c/pr.jpg" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Jakarta, Indonesia</georss:featurename><georss:point>-6.17511 106.86503949999997</georss:point><georss:box>-8.1968405 104.28325249999996 -4.1533795 109.44682649999997</georss:box></entry><entry><id>tag:blogger.com,1999:blog-3630068095685918406.post-1256354123870919044</id><published>2018-02-15T20:58:00.000+07:00</published><updated>2018-02-22T11:53:50.387+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Bootstrap"/><category scheme="http://www.blogger.com/atom/ns#" term="Carosel"/><category scheme="http://www.blogger.com/atom/ns#" term="css"/><category scheme="http://www.blogger.com/atom/ns#" term="HTML"/><title type='text'>Carousal Product Responsive Ponsel dan Desktop</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO83XlIxO0mVtNeUJ1UnJQ0qY1nQ4fHLSDx6k0k1TSgsHEmoYOo83EALCC66ccu6LtRq0bjDWOwy6XGdCu71-21wg4XZc5-Z9qY2_w7aHpwJXDgrNyQlxjtJZEEI_pZwEV26sdX2KcH7g/s1600/cl.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;439&quot; data-original-width=&quot;1057&quot; height=&quot;264&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO83XlIxO0mVtNeUJ1UnJQ0qY1nQ4fHLSDx6k0k1TSgsHEmoYOo83EALCC66ccu6LtRq0bjDWOwy6XGdCu71-21wg4XZc5-Z9qY2_w7aHpwJXDgrNyQlxjtJZEEI_pZwEV26sdX2KcH7g/s640/cl.jpg&quot; style=&quot;height: auto; width: 100%;&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Carousal Product Responsive Ponsel dan Desktop, &lt;/b&gt;diwaktu yang sama dan kesempatan yang sama tidak bosanya kami berbagi sedikit ilmu kepada agan dan pengunjung setiap blog kami ini, tutorial kali ini pembahasan hampir sama seputar website dan design kembali, tanpa mengurangi waktu langsung saja menuju TKP&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 1&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
Silakan anda copas link bootstrapnya dibawah ini :&lt;br /&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt;&amp;lt;link href=&quot;https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css&quot; rel=&quot;stylesheet&quot;&amp;gt;
&amp;lt;script type=&quot;text/javascript&quot; src=&quot;http://yourjavascript.com/21051171187/jquery-touchswipe-min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script type=&quot;text/javascript&quot; src=&quot;http://yourjavascript.com/11873115711/jquery-1-12-4-min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script type=&quot;text/javascript&quot; src=&quot;http://yourjavascript.com/71712155041/responsive-bootstrap-carousel.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/pre&gt;
&lt;b&gt;Step 2&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
Silakan copas lagi kode CSS dibawah ini kedalam lembar kerja agan&lt;br /&gt;
&lt;br /&gt;
Baca Juga :&amp;nbsp;&lt;a href=&quot;https://lacodeid.blogspot.co.id/2018/02/ecommerce-popup-produk-html-5.html&quot; rel=&quot;nofollow&quot;&gt;Ecommerce Popup Produk HTML 5&lt;/a&gt;&lt;br /&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt;.team_columns_carousel_wrapper {
    padding: 25px;
    overflow: hidden
}
.team_columns_carousel_control_left,
.team_columns_carousel_control_right {
    top: 26px;
    z-index: 2;
    opacity: 1;
    width: 35px;
    height: 35px;
    border: 0;
    text-shadow: none;
    text-align: center;
    -webkit-transition: all ease-in-out .3s;
    transition: all ease-in-out .3s
}
.team_columns_carousel_control_icons {
    line-height: 35px;
    font-size: 20px!important;
    font-weight: normal!important;
    margin-top:8px;
}
.team_columns_carousel_control_left {
    left: 26px!important
}
.team_columns_carousel_control_right {
    left: 63px!important
}
.adv_left {
    left: 41px!important
}
.adv_right {
    left: 78px!important
}
.team_columns_item_image {
    padding-top: 60px;
    padding-bottom: 25px
}
.team_columns_item_image img {
    width: 100%;
    -webkit-filter: grayscale(70%);
    -moz-filter: grayscale(70%);
    -ms-filter: grayscale(70%);
    -o-filter: grayscale(70%);
    filter: grayscale(70%);
    -webkit-transition: all ease-in-out .3s;
    -moz-transition: all ease-in-out .3s;
    -ms-transition: all ease-in-out .3s;
    -o-transition: all ease-in-out .3s;
    transition: all ease-in-out .3s
}
.team_columns_item_image:hover img {
    -webkit-filter: grayscale(0%);
    -moz-filter: grayscale(0%);
    -ms-filter: grayscale(0%);
    -o-filter: grayscale(0%);
    filter: grayscale(0%)
}
.team_columns_item_caption {
    padding: 10px;
    text-align: center;
    padding-bottom: 30px
}
.team_columns_item_caption&amp;gt;hr {
    width: 15%
}
.team_columns_item_caption h4 {
    font-weight: 800;
    text-transform: uppercase;
    font-family: &#39;Open Sans&#39;, sans-serif
}
.team_columns_item_caption h5 {
    font-weight: 600;
    text-transform: uppercase;
    font-family: &#39;Open Sans&#39;, sans-serif
}
.team_columns_item_caption p {
    font-weight: 400;
    margin-top: 20px;
    font-family: &#39;Open Sans&#39;, sans-serif
}
.team_columns_item_caption p a,
.team_columns_item_caption p a:visited {
    text-decoration: none;
    -webkit-transition: all ease-in-out .3s;
    transition: all ease-in-out .3s
}
.team_columns_item_social a,
.team_columns_item_social a:visited {
    width: 25px;
    float: left;
    height: 25px;
    display: block;
    line-height: 25px;
    margin-right: 2px;
    text-decoration: none;
    -webkit-transition: background ease-in-out .3s;
    transition: background ease-in-out .3s
}
@media(min-width:768px) and (max-width:789px) {
    .adv_team_columns_item_social a, .adv_team_columns_item_social a:visited {
        margin-right: 0
    }
}
.team_columns_carousel_wrapper {
    background: #fff
}
.team_columns_carousel_control_left,
.team_columns_carousel_control_left:hover,
.team_columns_carousel_control_left:active,
.team_columns_carousel_control_left:focus,
.team_columns_carousel_control_right,
.team_columns_carousel_control_right:hover,
.team_columns_carousel_control_right:active,
.team_columns_carousel_control_right:focus {
    color: #fff;
    background: #feb600!important
}
.team_columns_item_caption {
    color: #fff;
    background: #171717
}
.team_columns_item_caption&amp;gt;hr {
    border-top: 2px solid #feb600
}
.team_columns_item_caption p a,
.team_columns_item_caption p a:visited {
    color: #feb600
}
.team_columns_item_caption p a:hover,
.team_columns_item_caption p a:active {
    color: #cb9200
}
.team_columns_item_social a,
.team_columns_item_social a:visited {
    color: #171717;
    background: #feb600
}
.team_columns_item_social a:hover,
.team_columns_item_social a:active {
    background: #cb9200
}
.four_shows_one_move .cloneditem-1,
.four_shows_one_move .cloneditem-2,
.four_shows_one_move .cloneditem-3 {
    display: none
}
@media all and (min-width: 768px) {
    .four_shows_one_move .carousel-inner&amp;gt;.active.left,
    .four_shows_one_move .carousel-inner&amp;gt;.prev {
        left: -50%
    }
    .four_shows_one_move .carousel-inner&amp;gt;.active.right,
    .four_shows_one_move .carousel-inner&amp;gt;.next {
        left: 50%
    }
    .four_shows_one_move .carousel-inner&amp;gt;.left,
    .four_shows_one_move .carousel-inner&amp;gt;.prev.right,
    .four_shows_one_move .carousel-inner&amp;gt;.active {
        left: 0
    }
    .four_shows_one_move .carousel-inner .cloneditem-1 {
        display: block
    }
}
@media all and (min-width: 768px) and (transform-3d),
all and (min-width: 768px) and (-webkit-transform-3d) {
    .four_shows_one_move .carousel-inner&amp;gt;.item.active.right,
    .four_shows_one_move .carousel-inner&amp;gt;.item.next {
        -webkit-transform: translate3d(50%, 0, 0);
        transform: translate3d(50%, 0, 0);
        left: 0
    }
    .four_shows_one_move .carousel-inner&amp;gt;.item.active.left,
    .four_shows_one_move .carousel-inner&amp;gt;.item.prev {
        -webkit-transform: translate3d(-50%, 0, 0);
        transform: translate3d(-50%, 0, 0);
        left: 0
    }
    .four_shows_one_move .carousel-inner&amp;gt;.item.left,
    .four_shows_one_move .carousel-inner&amp;gt;.item.prev.right,
    .four_shows_one_move .carousel-inner&amp;gt;.item.active {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        left: 0
    }
}
@media all and (min-width: 992px) {
    .four_shows_one_move .carousel-inner&amp;gt;.active.left,
    .four_shows_one_move .carousel-inner&amp;gt;.prev {
        left: -25%
    }
    .four_shows_one_move .carousel-inner&amp;gt;.active.right,
    .four_shows_one_move .carousel-inner&amp;gt;.next {
        left: 25%
    }
    .four_shows_one_move .carousel-inner&amp;gt;.left,
    .four_shows_one_move .carousel-inner&amp;gt;.prev.right,
    .four_shows_one_move .carousel-inner&amp;gt;.active {
        left: 0
    }
    .four_shows_one_move .carousel-inner .cloneditem-2,
    .four_shows_one_move .carousel-inner .cloneditem-3 {
        display: block
    }
}
@media all and (min-width: 992px) and (transform-3d),
all and (min-width: 992px) and (-webkit-transform-3d) {
    .four_shows_one_move .carousel-inner&amp;gt;.item.active.right,
    .four_shows_one_move .carousel-inner&amp;gt;.item.next {
        -webkit-transform: translate3d(25%, 0, 0);
        transform: translate3d(25%, 0, 0);
        left: 0
    }
    .four_shows_one_move .carousel-inner&amp;gt;.item.active.left,
    .four_shows_one_move .carousel-inner&amp;gt;.item.prev {
        -webkit-transform: translate3d(-25%, 0, 0);
        transform: translate3d(-25%, 0, 0);
        left: 0
    }
    .four_shows_one_move .carousel-inner&amp;gt;.item.left,
    .four_shows_one_move .carousel-inner&amp;gt;.item.prev.right,
    .four_shows_one_move .carousel-inner&amp;gt;.item.active {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        left: 0
    }
}&lt;/pre&gt;
&lt;div&gt;
&lt;b&gt;Step 3&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
Silakan anda copas lagi kode HTML dibawah ini :&lt;/div&gt;
&lt;div&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt;&amp;lt;div class=&quot;container&quot;&amp;gt;
   &amp;lt;div class=&quot;row&quot;&amp;gt;
      &amp;lt;div id=&quot;adv_team_4_columns_carousel&quot; class=&quot;carousel slide four_shows_one_move team_columns_carousel_wrapper&quot; data-ride=&quot;carousel&quot; data-interval=&quot;2000&quot; data-pause=&quot;hover&quot;&amp;gt;
         &amp;lt;!--========= Wrapper for slides =========--&amp;gt;
         &amp;lt;div class=&quot;carousel-inner&quot; role=&quot;listbox&quot;&amp;gt;
            &amp;lt;!--========= 1st slide =========--&amp;gt;
            &amp;lt;div class=&quot;item&quot;&amp;gt;
               &amp;lt;div class=&quot;col-xs-12 col-sm-6 col-md-3 team_columns_item_image&quot;&amp;gt;
                  &amp;lt;img src=&quot;http://placehold.it/150x150&quot; alt=&quot;slider 01&quot;&amp;gt;
                  &amp;lt;div class=&quot;team_columns_item_caption&quot;&amp;gt;
                     &amp;lt;h4&amp;gt;Lahore&amp;lt;/h4&amp;gt;
                     &amp;lt;hr&amp;gt;
                     &amp;lt;h5&amp;gt;PAKISTAN&amp;lt;/h5&amp;gt;
                  &amp;lt;/div&amp;gt;
               &amp;lt;/div&amp;gt;
               &amp;lt;div class=&quot;col-xs-12 col-sm-6 col-md-3 team_columns_item_image cloneditem-1&quot;&amp;gt;
                  &amp;lt;img src=&quot;http://placehold.it/150x150&quot; alt=&quot;slider 02&quot;&amp;gt;
                  &amp;lt;div class=&quot;team_columns_item_caption&quot;&amp;gt;
                     &amp;lt;h4&amp;gt;Lahore&amp;lt;/h4&amp;gt;
                     &amp;lt;hr&amp;gt;
                     &amp;lt;h5&amp;gt;PAKISTAN&amp;lt;/h5&amp;gt;
                  &amp;lt;/div&amp;gt;
               &amp;lt;/div&amp;gt;
               &amp;lt;div class=&quot;col-xs-12 col-sm-6 col-md-3 team_columns_item_image cloneditem-2&quot;&amp;gt;
                  &amp;lt;img src=&quot;http://placehold.it/150x150&quot; alt=&quot;slider 02&quot;&amp;gt;
                  &amp;lt;div class=&quot;team_columns_item_caption&quot;&amp;gt;
                     &amp;lt;h4&amp;gt;Karachi&amp;lt;/h4&amp;gt;
                     &amp;lt;hr&amp;gt;
                     &amp;lt;h5&amp;gt;PAKISTAN&amp;lt;/h5&amp;gt;
                  &amp;lt;/div&amp;gt;
               &amp;lt;/div&amp;gt;
               &amp;lt;div class=&quot;col-xs-12 col-sm-6 col-md-3 team_columns_item_image cloneditem-3&quot;&amp;gt;
                  &amp;lt;img src=&quot;http://placehold.it/150x150&quot; alt=&quot;slider 02&quot;&amp;gt;
                  &amp;lt;div class=&quot;team_columns_item_caption&quot;&amp;gt;
                     &amp;lt;h4&amp;gt;Lahore&amp;lt;/h4&amp;gt;
                     &amp;lt;hr&amp;gt;
                     &amp;lt;h5&amp;gt;PAKISTAN&amp;lt;/h5&amp;gt;
                  &amp;lt;/div&amp;gt;
               &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;
            &amp;lt;!--========= 2nd slide =========--&amp;gt;
            &amp;lt;div class=&quot;item active&quot;&amp;gt;
               &amp;lt;div class=&quot;col-xs-12 col-sm-6 col-md-3 team_columns_item_image&quot;&amp;gt;
                  &amp;lt;img src=&quot;http://placehold.it/150x150&quot; alt=&quot;slider 02&quot;&amp;gt;
                  &amp;lt;div class=&quot;team_columns_item_caption&quot;&amp;gt;
                     &amp;lt;h4&amp;gt;Lahore&amp;lt;/h4&amp;gt;
                     &amp;lt;hr&amp;gt;
                     &amp;lt;h5&amp;gt;PAKISTAN&amp;lt;/h5&amp;gt;
                  &amp;lt;/div&amp;gt;
               &amp;lt;/div&amp;gt;
               &amp;lt;div class=&quot;col-xs-12 col-sm-6 col-md-3 team_columns_item_image cloneditem-1&quot;&amp;gt;
                  &amp;lt;img src=&quot;http://placehold.it/150x150&quot; alt=&quot;slider 02&quot;&amp;gt;
                  &amp;lt;div class=&quot;team_columns_item_caption&quot;&amp;gt;
                     &amp;lt;h4&amp;gt;Karachi&amp;lt;/h4&amp;gt;
                     &amp;lt;hr&amp;gt;
                     &amp;lt;h5&amp;gt;PAKISTAN&amp;lt;/h5&amp;gt;
                  &amp;lt;/div&amp;gt;
               &amp;lt;/div&amp;gt;
               &amp;lt;div class=&quot;col-xs-12 col-sm-6 col-md-3 team_columns_item_image cloneditem-2&quot;&amp;gt;
                  &amp;lt;img src=&quot;http://placehold.it/150x150&quot; alt=&quot;slider 02&quot;&amp;gt;
                  &amp;lt;div class=&quot;team_columns_item_caption&quot;&amp;gt;
                     &amp;lt;h4&amp;gt;Lahore&amp;lt;/h4&amp;gt;
                     &amp;lt;hr&amp;gt;
                     &amp;lt;h5&amp;gt;PAKISTAN&amp;lt;/h5&amp;gt;
                  &amp;lt;/div&amp;gt;
               &amp;lt;/div&amp;gt;
               &amp;lt;div class=&quot;col-xs-12 col-sm-6 col-md-3 team_columns_item_image cloneditem-3&quot;&amp;gt;
                  &amp;lt;img src=&quot;http://placehold.it/150x150&quot; alt=&quot;slider 02&quot;&amp;gt;
                  &amp;lt;div class=&quot;team_columns_item_caption&quot;&amp;gt;
                     &amp;lt;h4&amp;gt;Karachi&amp;lt;/h4&amp;gt;
                     &amp;lt;hr&amp;gt;
                     &amp;lt;h5&amp;gt;PAKISTAN&amp;lt;/h5&amp;gt;
                  &amp;lt;/div&amp;gt;
               &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;
            &amp;lt;!--========= 3rd slide =========--&amp;gt;
            &amp;lt;div class=&quot;item&quot;&amp;gt;
               &amp;lt;div class=&quot;col-xs-12 col-sm-6 col-md-3 team_columns_item_image&quot;&amp;gt;
                  &amp;lt;img src=&quot;http://placehold.it/150x150&quot; alt=&quot;slider 02&quot;&amp;gt;
                  &amp;lt;div class=&quot;team_columns_item_caption&quot;&amp;gt;
                     &amp;lt;h4&amp;gt;Karachi&amp;lt;/h4&amp;gt;
                     &amp;lt;hr&amp;gt;
                     &amp;lt;h5&amp;gt;PAKISTAN&amp;lt;/h5&amp;gt;
                  &amp;lt;/div&amp;gt;
               &amp;lt;/div&amp;gt;
               &amp;lt;div class=&quot;col-xs-12 col-sm-6 col-md-3 team_columns_item_image cloneditem-1&quot;&amp;gt;
                  &amp;lt;img src=&quot;http://placehold.it/150x150&quot; alt=&quot;slider 02&quot;&amp;gt;
                  &amp;lt;div class=&quot;team_columns_item_caption&quot;&amp;gt;
                     &amp;lt;h4&amp;gt;Lahore&amp;lt;/h4&amp;gt;
                     &amp;lt;hr&amp;gt;
                     &amp;lt;h5&amp;gt;PAKISTAN&amp;lt;/h5&amp;gt;
                  &amp;lt;/div&amp;gt;
               &amp;lt;/div&amp;gt;
               &amp;lt;div class=&quot;col-xs-12 col-sm-6 col-md-3 team_columns_item_image cloneditem-2&quot;&amp;gt;
                  &amp;lt;img src=&quot;http://placehold.it/150x150&quot; alt=&quot;slider 02&quot;&amp;gt;
                  &amp;lt;div class=&quot;team_columns_item_caption&quot;&amp;gt;
                     &amp;lt;h4&amp;gt;Karachi&amp;lt;/h4&amp;gt;
                     &amp;lt;hr&amp;gt;
                     &amp;lt;h5&amp;gt;PAKISTAN&amp;lt;/h5&amp;gt;
                  &amp;lt;/div&amp;gt;
               &amp;lt;/div&amp;gt;
               &amp;lt;div class=&quot;col-xs-12 col-sm-6 col-md-3 team_columns_item_image cloneditem-3&quot;&amp;gt;
                  &amp;lt;img src=&quot;http://placehold.it/150x150&quot; alt=&quot;slider 02&quot;&amp;gt;
                  &amp;lt;div class=&quot;team_columns_item_caption&quot;&amp;gt;
                     &amp;lt;h4&amp;gt;Lahore&amp;lt;/h4&amp;gt;
                     &amp;lt;hr&amp;gt;
                     &amp;lt;h5&amp;gt;PAKISTAN&amp;lt;/h5&amp;gt;
                  &amp;lt;/div&amp;gt;
               &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;
            &amp;lt;!--========= 4th slide =========--&amp;gt;
            &amp;lt;div class=&quot;item&quot;&amp;gt;
               &amp;lt;div class=&quot;col-xs-12 col-sm-6 col-md-3 team_columns_item_image&quot;&amp;gt;
                  &amp;lt;img src=&quot;http://placehold.it/150x150&quot; alt=&quot;slider 02&quot;&amp;gt;
                  &amp;lt;div class=&quot;team_columns_item_caption&quot;&amp;gt;
                     &amp;lt;h4&amp;gt;Lahore&amp;lt;/h4&amp;gt;
                     &amp;lt;hr&amp;gt;
                     &amp;lt;h5&amp;gt;PAKISTAN&amp;lt;/h5&amp;gt;
                  &amp;lt;/div&amp;gt;
               &amp;lt;/div&amp;gt;
               &amp;lt;div class=&quot;col-xs-12 col-sm-6 col-md-3 team_columns_item_image cloneditem-1&quot;&amp;gt;
                  &amp;lt;img src=&quot;http://placehold.it/150x150&quot; alt=&quot;slider 02&quot;&amp;gt;
                  &amp;lt;div class=&quot;team_columns_item_caption&quot;&amp;gt;
                     &amp;lt;h4&amp;gt;Karachi&amp;lt;/h4&amp;gt;
                     &amp;lt;hr&amp;gt;
                     &amp;lt;h5&amp;gt;PAKISTAN&amp;lt;/h5&amp;gt;
                  &amp;lt;/div&amp;gt;
               &amp;lt;/div&amp;gt;
               &amp;lt;div class=&quot;col-xs-12 col-sm-6 col-md-3 team_columns_item_image cloneditem-2&quot;&amp;gt;
                  &amp;lt;img src=&quot;http://placehold.it/150x150&quot; alt=&quot;slider 02&quot;&amp;gt;
                  &amp;lt;div class=&quot;team_columns_item_caption&quot;&amp;gt;
                     &amp;lt;h4&amp;gt;Lahore&amp;lt;/h4&amp;gt;
                     &amp;lt;hr&amp;gt;
                     &amp;lt;h5&amp;gt;PAKISTAN&amp;lt;/h5&amp;gt;
                  &amp;lt;/div&amp;gt;
               &amp;lt;/div&amp;gt;
               &amp;lt;div class=&quot;col-xs-12 col-sm-6 col-md-3 team_columns_item_image cloneditem-3&quot;&amp;gt;
                  &amp;lt;img src=&quot;http://placehold.it/150x150&quot; alt=&quot;slider 02&quot;&amp;gt;
                  &amp;lt;div class=&quot;team_columns_item_caption&quot;&amp;gt;
                     &amp;lt;h4&amp;gt;Karachi&amp;lt;/h4&amp;gt;
                     &amp;lt;hr&amp;gt;
                     &amp;lt;h5&amp;gt;PAKISTAN&amp;lt;/h5&amp;gt;
                  &amp;lt;/div&amp;gt;
               &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;
            &amp;lt;!--========= 5th Slide =========--&amp;gt;
            &amp;lt;div class=&quot;item&quot;&amp;gt;
               &amp;lt;div class=&quot;col-xs-12 col-sm-6 col-md-3 team_columns_item_image&quot;&amp;gt;
                  &amp;lt;img src=&quot;http://placehold.it/150x150&quot; alt=&quot;slider 02&quot;&amp;gt;
                  &amp;lt;div class=&quot;team_columns_item_caption&quot;&amp;gt;
                     &amp;lt;h4&amp;gt;Karachi&amp;lt;/h4&amp;gt;
                     &amp;lt;hr&amp;gt;
                     &amp;lt;h5&amp;gt;PAKISTAN&amp;lt;/h5&amp;gt;
                  &amp;lt;/div&amp;gt;
               &amp;lt;/div&amp;gt;
               &amp;lt;div class=&quot;col-xs-12 col-sm-6 col-md-3 team_columns_item_image cloneditem-1&quot;&amp;gt;
                  &amp;lt;img src=&quot;http://placehold.it/150x150&quot; alt=&quot;slider 02&quot;&amp;gt;
                  &amp;lt;div class=&quot;team_columns_item_caption&quot;&amp;gt;
                     &amp;lt;h4&amp;gt;Lahore&amp;lt;/h4&amp;gt;
                     &amp;lt;hr&amp;gt;
                     &amp;lt;h5&amp;gt;PAKISTAN&amp;lt;/h5&amp;gt;
                  &amp;lt;/div&amp;gt;
               &amp;lt;/div&amp;gt;
               &amp;lt;div class=&quot;col-xs-12 col-sm-6 col-md-3 team_columns_item_image cloneditem-2&quot;&amp;gt;
                  &amp;lt;img src=&quot;http://placehold.it/150x150&quot; alt=&quot;slider 02&quot;&amp;gt;
                  &amp;lt;div class=&quot;team_columns_item_caption&quot;&amp;gt;
                     &amp;lt;h4&amp;gt;Karachi&amp;lt;/h4&amp;gt;
                     &amp;lt;hr&amp;gt;
                     &amp;lt;h5&amp;gt;PAKISTAN&amp;lt;/h5&amp;gt;
                  &amp;lt;/div&amp;gt;
               &amp;lt;/div&amp;gt;
               &amp;lt;div class=&quot;col-xs-12 col-sm-6 col-md-3 team_columns_item_image cloneditem-3&quot;&amp;gt;
                  &amp;lt;img src=&quot;http://placehold.it/150x150&quot; alt=&quot;slider 02&quot;&amp;gt;
                  &amp;lt;div class=&quot;team_columns_item_caption&quot;&amp;gt;
                     &amp;lt;h4&amp;gt;Lahore&amp;lt;/h4&amp;gt;
                     &amp;lt;hr&amp;gt;
                     &amp;lt;h5&amp;gt;PAKISTAN&amp;lt;/h5&amp;gt;
                  &amp;lt;/div&amp;gt;
               &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;
            &amp;lt;!--========= 6th Slide =========--&amp;gt;
            &amp;lt;div class=&quot;item&quot;&amp;gt;
               &amp;lt;div class=&quot;col-xs-12 col-sm-6 col-md-3 team_columns_item_image&quot;&amp;gt;
                  &amp;lt;img src=&quot;http://placehold.it/150x150&quot; alt=&quot;slider 02&quot;&amp;gt;
                  &amp;lt;div class=&quot;team_columns_item_caption&quot;&amp;gt;
                     &amp;lt;h4&amp;gt;Lahore&amp;lt;/h4&amp;gt;
                     &amp;lt;hr&amp;gt;
                     &amp;lt;h5&amp;gt;PAKISTAN&amp;lt;/h5&amp;gt;
                  &amp;lt;/div&amp;gt;
               &amp;lt;/div&amp;gt;
               &amp;lt;div class=&quot;col-xs-12 col-sm-6 col-md-3 team_columns_item_image cloneditem-1&quot;&amp;gt;
                  &amp;lt;img src=&quot;http://placehold.it/150x150&quot; alt=&quot;slider 02&quot;&amp;gt;
                  &amp;lt;div class=&quot;team_columns_item_caption&quot;&amp;gt;
                     &amp;lt;h4&amp;gt;Karachi&amp;lt;/h4&amp;gt;
                     &amp;lt;hr&amp;gt;
                     &amp;lt;h5&amp;gt;PAKISTAN&amp;lt;/h5&amp;gt;
                  &amp;lt;/div&amp;gt;
               &amp;lt;/div&amp;gt;
               &amp;lt;div class=&quot;col-xs-12 col-sm-6 col-md-3 team_columns_item_image cloneditem-2&quot;&amp;gt;
                  &amp;lt;img src=&quot;http://placehold.it/150x150&quot; alt=&quot;slider 02&quot;&amp;gt;
                  &amp;lt;div class=&quot;team_columns_item_caption&quot;&amp;gt;
                     &amp;lt;h4&amp;gt;Lahore&amp;lt;/h4&amp;gt;
                     &amp;lt;hr&amp;gt;
                     &amp;lt;h5&amp;gt;PAKISTAN&amp;lt;/h5&amp;gt;
                  &amp;lt;/div&amp;gt;
               &amp;lt;/div&amp;gt;
               &amp;lt;div class=&quot;col-xs-12 col-sm-6 col-md-3 team_columns_item_image cloneditem-3&quot;&amp;gt;
                  &amp;lt;img src=&quot;http://placehold.it/150x150&quot; alt=&quot;slider 01&quot;&amp;gt;
                  &amp;lt;div class=&quot;team_columns_item_caption&quot;&amp;gt;
                     &amp;lt;h4&amp;gt;Lahore&amp;lt;/h4&amp;gt;
                     &amp;lt;hr&amp;gt;
                     &amp;lt;h5&amp;gt;PAKISTAN&amp;lt;/h5&amp;gt;
                  &amp;lt;/div&amp;gt;
               &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;
            &amp;lt;!--========= 7th Slide =========--&amp;gt;
            &amp;lt;div class=&quot;item&quot;&amp;gt;
               &amp;lt;div class=&quot;col-xs-12 col-sm-6 col-md-3 team_columns_item_image&quot;&amp;gt;
                  &amp;lt;img src=&quot;http://placehold.it/150x150&quot; alt=&quot;slider 02&quot;&amp;gt;
                  &amp;lt;div class=&quot;team_columns_item_caption&quot;&amp;gt;
                     &amp;lt;h4&amp;gt;Karachi&amp;lt;/h4&amp;gt;
                     &amp;lt;hr&amp;gt;
                     &amp;lt;h5&amp;gt;PAKISTAN&amp;lt;/h5&amp;gt;
                  &amp;lt;/div&amp;gt;
               &amp;lt;/div&amp;gt;
               &amp;lt;div class=&quot;col-xs-12 col-sm-6 col-md-3 team_columns_item_image cloneditem-1&quot;&amp;gt;
                  &amp;lt;img src=&quot;http://placehold.it/150x150&quot; alt=&quot;slider 02&quot;&amp;gt;
                  &amp;lt;div class=&quot;team_columns_item_caption&quot;&amp;gt;
                     &amp;lt;h4&amp;gt;Lahore&amp;lt;/h4&amp;gt;
                     &amp;lt;hr&amp;gt;
                     &amp;lt;h5&amp;gt;PAKISTAN&amp;lt;/h5&amp;gt;
                  &amp;lt;/div&amp;gt;
               &amp;lt;/div&amp;gt;
               &amp;lt;div class=&quot;col-xs-12 col-sm-6 col-md-3 team_columns_item_image cloneditem-2&quot;&amp;gt;
                  &amp;lt;img src=&quot;http://placehold.it/150x150&quot; alt=&quot;slider 01&quot;&amp;gt;
                  &amp;lt;div class=&quot;team_columns_item_caption&quot;&amp;gt;
                     &amp;lt;h4&amp;gt;Lahore&amp;lt;/h4&amp;gt;
                     &amp;lt;hr&amp;gt;
                     &amp;lt;h5&amp;gt;PAKISTAN&amp;lt;/h5&amp;gt;
                  &amp;lt;/div&amp;gt;
               &amp;lt;/div&amp;gt;
               &amp;lt;div class=&quot;col-xs-12 col-sm-6 col-md-3 team_columns_item_image cloneditem-3&quot;&amp;gt;
                  &amp;lt;img src=&quot;http://placehold.it/150x150&quot; alt=&quot;slider 02&quot;&amp;gt;
                  &amp;lt;div class=&quot;team_columns_item_caption&quot;&amp;gt;
                     &amp;lt;h4&amp;gt;Lahore&amp;lt;/h4&amp;gt;
                     &amp;lt;hr&amp;gt;
                     &amp;lt;h5&amp;gt;PAKISTAN&amp;lt;/h5&amp;gt;
                  &amp;lt;/div&amp;gt;
               &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;
            &amp;lt;!--========= 8th Slide =========--&amp;gt;
            &amp;lt;div class=&quot;item&quot;&amp;gt;
               &amp;lt;div class=&quot;col-xs-12 col-sm-6 col-md-3 team_columns_item_image&quot;&amp;gt;
                  &amp;lt;img src=&quot;http://placehold.it/150x150&quot; alt=&quot;slider 02&quot;&amp;gt;
                  &amp;lt;div class=&quot;team_columns_item_caption&quot;&amp;gt;
                     &amp;lt;h4&amp;gt;Lahore&amp;lt;/h4&amp;gt;
                     &amp;lt;hr&amp;gt;
                     &amp;lt;h5&amp;gt;PAKISTAN&amp;lt;/h5&amp;gt;
                  &amp;lt;/div&amp;gt;
               &amp;lt;/div&amp;gt;
               &amp;lt;div class=&quot;col-xs-12 col-sm-6 col-md-3 team_columns_item_image cloneditem-1&quot;&amp;gt;
                  &amp;lt;img src=&quot;http://placehold.it/150x150&quot; alt=&quot;slider 01&quot;&amp;gt;
                  &amp;lt;div class=&quot;team_columns_item_caption&quot;&amp;gt;
                     &amp;lt;h4&amp;gt;Lahore&amp;lt;/h4&amp;gt;
                     &amp;lt;hr&amp;gt;
                     &amp;lt;h5&amp;gt;PAKISTAN&amp;lt;/h5&amp;gt;
                  &amp;lt;/div&amp;gt;
               &amp;lt;/div&amp;gt;
               &amp;lt;div class=&quot;col-xs-12 col-sm-6 col-md-3 team_columns_item_image cloneditem-2&quot;&amp;gt;
                  &amp;lt;img src=&quot;http://placehold.it/150x150&quot; alt=&quot;slider 02&quot;&amp;gt;
                  &amp;lt;div class=&quot;team_columns_item_caption&quot;&amp;gt;
                     &amp;lt;h4&amp;gt;Lahore&amp;lt;/h4&amp;gt;
                     &amp;lt;hr&amp;gt;
                     &amp;lt;h5&amp;gt;PAKISTAN&amp;lt;/h5&amp;gt;
                  &amp;lt;/div&amp;gt;
               &amp;lt;/div&amp;gt;
               &amp;lt;div class=&quot;col-xs-12 col-sm-6 col-md-3 team_columns_item_image cloneditem-3&quot;&amp;gt;
                  &amp;lt;img src=&quot;http://placehold.it/150x150&quot; alt=&quot;slider 02&quot;&amp;gt;
                  &amp;lt;div class=&quot;team_columns_item_caption&quot;&amp;gt;
                     &amp;lt;h4&amp;gt;Karachi&amp;lt;/h4&amp;gt;
                     &amp;lt;hr&amp;gt;
                     &amp;lt;h5&amp;gt;PAKISTAN&amp;lt;/h5&amp;gt;
                  &amp;lt;/div&amp;gt;
               &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;
         &amp;lt;/div&amp;gt;
         &amp;lt;!--======= Navigation Buttons =========--&amp;gt;
         &amp;lt;!--======= Left Button =========--&amp;gt;
         &amp;lt;a class=&quot;left carousel-control team_columns_carousel_control_left adv_left&quot; href=&quot;#adv_team_4_columns_carousel&quot; role=&quot;button&quot; data-slide=&quot;prev&quot;&amp;gt;
         &amp;lt;span class=&quot;fa fa-angle-left team_columns_carousel_control_icons&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;lt;/span&amp;gt;
         &amp;lt;span class=&quot;sr-only&quot;&amp;gt;Previous&amp;lt;/span&amp;gt;
         &amp;lt;/a&amp;gt;
         &amp;lt;!--======= Right Button =========--&amp;gt;
         &amp;lt;a class=&quot;right carousel-control team_columns_carousel_control_right adv_right&quot; href=&quot;#adv_team_4_columns_carousel&quot; role=&quot;button&quot; data-slide=&quot;next&quot;&amp;gt;
         &amp;lt;span class=&quot;fa fa-angle-right team_columns_carousel_control_icons&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;lt;/span&amp;gt;
         &amp;lt;span class=&quot;sr-only&quot;&amp;gt;Next&amp;lt;/span&amp;gt;
         &amp;lt;/a&amp;gt;
      &amp;lt;/div&amp;gt;
   &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
Cuma tiga langkah mudah untuk membuat&amp;nbsp;Carousal &lt;a href=&quot;https://lacodeid.blogspot.com/2018/02/html-css-produk-mobile-responsive.html&quot; rel=&quot;nofollow&quot;&gt;Product Responsive&lt;/a&gt; Ponsel dan Desktop&amp;nbsp;silakan dipelajari dan kembangkan sesuai dengan ide kreatif sodara-sodara senasip dan seperjuangan...Happy WriteCode.&lt;br /&gt;
&lt;br /&gt;
Baca Juga :&amp;nbsp;&lt;a href=&quot;https://lacodeid.blogspot.co.id/2017/10/paralax-efect-slideshow-responsive-css3.html&quot; rel=&quot;nofollow&quot;&gt;Paralax efect slideshow responsive css3&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://lacodeid.blogspot.com/feeds/1256354123870919044/comments/default' title='Posting Komentar'/><link rel='replies' type='text/html' href='https://lacodeid.blogspot.com/2018/02/carousal-product-responsive-ponsel-dan.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/1256354123870919044'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/1256354123870919044'/><link rel='alternate' type='text/html' href='https://lacodeid.blogspot.com/2018/02/carousal-product-responsive-ponsel-dan.html' title='Carousal Product Responsive Ponsel dan Desktop'/><author><name>Lacode</name><uri>http://www.blogger.com/profile/15545994188230698518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO83XlIxO0mVtNeUJ1UnJQ0qY1nQ4fHLSDx6k0k1TSgsHEmoYOo83EALCC66ccu6LtRq0bjDWOwy6XGdCu71-21wg4XZc5-Z9qY2_w7aHpwJXDgrNyQlxjtJZEEI_pZwEV26sdX2KcH7g/s72-c/cl.jpg" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Jakarta, Indonesia</georss:featurename><georss:point>-6.17511 106.86503949999997</georss:point><georss:box>-8.1968405 104.28325249999996 -4.1533795 109.44682649999997</georss:box></entry><entry><id>tag:blogger.com,1999:blog-3630068095685918406.post-7070175230621299575</id><published>2018-02-15T20:45:00.000+07:00</published><updated>2018-02-15T20:45:14.131+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Bootstrap"/><category scheme="http://www.blogger.com/atom/ns#" term="css"/><category scheme="http://www.blogger.com/atom/ns#" term="HTML"/><title type='text'>Ecommerce Popup Produk HTML 5</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQb5PEiY9fB6f50XP4EYIkS7rYvPJYlbBgKIBxi_Gxo5qrAt_gyJ4g7k5lPcdblxnb9Z7kYdaFWQ7PhNwJ05vmym7ZXWm4GKeVybdnViePAndrpaSf33X1WZivdwGvh1Ig9N5S1CApJOo/s1600/ec.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;445&quot; data-original-width=&quot;1161&quot; height=&quot;246&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQb5PEiY9fB6f50XP4EYIkS7rYvPJYlbBgKIBxi_Gxo5qrAt_gyJ4g7k5lPcdblxnb9Z7kYdaFWQ7PhNwJ05vmym7ZXWm4GKeVybdnViePAndrpaSf33X1WZivdwGvh1Ig9N5S1CApJOo/s640/ec.png&quot; style=&quot;height: auto; width: 100%;&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Dikesempatan yang sama kami masih membahas seputar CSS dan pembuatan Website yang menarik dan elegan, ditutorial singkat ini juga kami ingin berbagi cara membuat&amp;nbsp;&lt;b&gt;Ecommerce Popup Produk HTML 5&lt;/b&gt; dengan menggunakan bootstrap, untuk agan yang baru menggenal bootstrap silakan kunjungi link resminya framework bootstrap, langsung kepokok pembahasan tanpa lama-lama menunggu 3 langkah mudah membuat tampilan website menarik.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 1&lt;/b&gt;&lt;br /&gt;
Silakan agan copas script css dibawah ini :&lt;br /&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt; .product_view .modal-dialog{max-width: 800px; width: 100%;}
 .pre-cost{text-decoration: line-through; color: #a5a5a5;}
 .space-ten{padding: 10px 0;}&lt;/pre&gt;
Step 2&lt;br /&gt;
&lt;br /&gt;
Silakan copas juga kode HTMLnya dibawah ini :&lt;br /&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt;&amp;lt;div class=&quot;container&quot;&amp;gt;
    &amp;lt;div class=&quot;row&quot;&amp;gt;
        &amp;lt;div class=&quot;col-md-4&quot;&amp;gt;
              &amp;lt;div class=&quot;thumbnail&quot;&amp;gt;
                &amp;lt;img src=&quot;http://tech.firstpost.com/wp-content/uploads/2014/09/Apple_iPhone6_Reuters.jpg&quot; alt=&quot;&quot; class=&quot;img-responsive&quot;&amp;gt;
                &amp;lt;div class=&quot;caption&quot;&amp;gt;
                  &amp;lt;h4 class=&quot;pull-right&quot;&amp;gt;$700.99&amp;lt;/h4&amp;gt;
                  &amp;lt;h4&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;Mobile Product&amp;lt;/a&amp;gt;&amp;lt;/h4&amp;gt;
                  &amp;lt;p&amp;gt;Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry&#39;s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.&amp;lt;/p&amp;gt;
                &amp;lt;/div&amp;gt;
                &amp;lt;div class=&quot;ratings&quot;&amp;gt;
                  &amp;lt;p&amp;gt;
                    &amp;lt;span class=&quot;glyphicon glyphicon-star&quot;&amp;gt;&amp;lt;/span&amp;gt;
                    &amp;lt;span class=&quot;glyphicon glyphicon-star&quot;&amp;gt;&amp;lt;/span&amp;gt;
                    &amp;lt;span class=&quot;glyphicon glyphicon-star&quot;&amp;gt;&amp;lt;/span&amp;gt;
                    &amp;lt;span class=&quot;glyphicon glyphicon-star&quot;&amp;gt;&amp;lt;/span&amp;gt;
                    &amp;lt;span class=&quot;glyphicon glyphicon-star&quot;&amp;gt;&amp;lt;/span&amp;gt;
                     (15 reviews)
                  &amp;lt;/p&amp;gt;
                &amp;lt;/div&amp;gt;
                &amp;lt;div class=&quot;space-ten&quot;&amp;gt;&amp;lt;/div&amp;gt;
                &amp;lt;div class=&quot;btn-ground text-center&quot;&amp;gt;
                    &amp;lt;button type=&quot;button&quot; class=&quot;btn btn-primary&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-shopping-cart&quot;&amp;gt;&amp;lt;/i&amp;gt; Add To Cart&amp;lt;/button&amp;gt;
                    &amp;lt;button type=&quot;button&quot; class=&quot;btn btn-primary&quot; data-toggle=&quot;modal&quot; data-target=&quot;#product_view&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-search&quot;&amp;gt;&amp;lt;/i&amp;gt; Quick View&amp;lt;/button&amp;gt;
                &amp;lt;/div&amp;gt;
                &amp;lt;div class=&quot;space-ten&quot;&amp;gt;&amp;lt;/div&amp;gt;
              &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;
            &amp;lt;div class=&quot;col-md-4&quot;&amp;gt;
              &amp;lt;div class=&quot;thumbnail&quot;&amp;gt;
                &amp;lt;img src=&quot;http://tech.firstpost.com/wp-content/uploads/2014/09/Apple_iPhone6_Reuters.jpg&quot; alt=&quot;&quot; class=&quot;img-responsive&quot;&amp;gt;
                &amp;lt;div class=&quot;caption&quot;&amp;gt;
                  &amp;lt;h4 class=&quot;pull-right&quot;&amp;gt;$700.99&amp;lt;/h4&amp;gt;
                  &amp;lt;h4&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;Mobile Product&amp;lt;/a&amp;gt;&amp;lt;/h4&amp;gt;
                  &amp;lt;p&amp;gt;Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry&#39;s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.&amp;lt;/p&amp;gt;
                &amp;lt;/div&amp;gt;
                &amp;lt;div class=&quot;ratings&quot;&amp;gt;
                  &amp;lt;p&amp;gt;
                    &amp;lt;span class=&quot;glyphicon glyphicon-star&quot;&amp;gt;&amp;lt;/span&amp;gt;
                    &amp;lt;span class=&quot;glyphicon glyphicon-star&quot;&amp;gt;&amp;lt;/span&amp;gt;
                    &amp;lt;span class=&quot;glyphicon glyphicon-star&quot;&amp;gt;&amp;lt;/span&amp;gt;
                    &amp;lt;span class=&quot;glyphicon glyphicon-star&quot;&amp;gt;&amp;lt;/span&amp;gt;
                    &amp;lt;span class=&quot;glyphicon glyphicon-star&quot;&amp;gt;&amp;lt;/span&amp;gt;
                     (15 reviews)
                  &amp;lt;/p&amp;gt;
                &amp;lt;/div&amp;gt;
                &amp;lt;div class=&quot;space-ten&quot;&amp;gt;&amp;lt;/div&amp;gt;
                &amp;lt;div class=&quot;btn-ground text-center&quot;&amp;gt;
                    &amp;lt;button type=&quot;button&quot; class=&quot;btn btn-primary&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-shopping-cart&quot;&amp;gt;&amp;lt;/i&amp;gt; Add To Cart&amp;lt;/button&amp;gt;
                    &amp;lt;button type=&quot;button&quot; class=&quot;btn btn-primary&quot; data-toggle=&quot;modal&quot; data-target=&quot;#product_view&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-search&quot;&amp;gt;&amp;lt;/i&amp;gt; Quick View&amp;lt;/button&amp;gt;
                &amp;lt;/div&amp;gt;
                &amp;lt;div class=&quot;space-ten&quot;&amp;gt;&amp;lt;/div&amp;gt;
              &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;
            &amp;lt;div class=&quot;col-md-4&quot;&amp;gt;
              &amp;lt;div class=&quot;thumbnail&quot;&amp;gt;
                &amp;lt;img src=&quot;http://tech.firstpost.com/wp-content/uploads/2014/09/Apple_iPhone6_Reuters.jpg&quot; alt=&quot;&quot; class=&quot;img-responsive&quot;&amp;gt;
                &amp;lt;div class=&quot;caption&quot;&amp;gt;
                  &amp;lt;h4 class=&quot;pull-right&quot;&amp;gt;$700.99&amp;lt;/h4&amp;gt;
                  &amp;lt;h4&amp;gt;&amp;lt;a href=  &quot;#&quot;&amp;gt;Mobile Product&amp;lt;/a&amp;gt;&amp;lt;/h4&amp;gt;
                  &amp;lt;p&amp;gt;Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry&#39;s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.&amp;lt;/p&amp;gt;
                &amp;lt;/div&amp;gt;
                &amp;lt;div class=&quot;ratings&quot;&amp;gt;
                  &amp;lt;p&amp;gt;
                    &amp;lt;span class=&quot;glyphicon glyphicon-star&quot;&amp;gt;&amp;lt;/span&amp;gt;
                    &amp;lt;span class=&quot;glyphicon glyphicon-star&quot;&amp;gt;&amp;lt;/span&amp;gt;
                    &amp;lt;span class=&quot;glyphicon glyphicon-star&quot;&amp;gt;&amp;lt;/span&amp;gt;
                    &amp;lt;span class=&quot;glyphicon glyphicon-star&quot;&amp;gt;&amp;lt;/span&amp;gt;
                    &amp;lt;span class=&quot;glyphicon glyphicon-star&quot;&amp;gt;&amp;lt;/span&amp;gt;
                     (15 reviews)
                  &amp;lt;/p&amp;gt;
                &amp;lt;/div&amp;gt;
                &amp;lt;div class=&quot;space-ten&quot;&amp;gt;&amp;lt;/div&amp;gt;
                &amp;lt;div class=&quot;btn-ground text-center&quot;&amp;gt;
                    &amp;lt;button type=&quot;button&quot; class=&quot;btn btn-primary&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-shopping-cart&quot;&amp;gt;&amp;lt;/i&amp;gt; Add To Cart&amp;lt;/button&amp;gt;
                    &amp;lt;button type=&quot;button&quot; class=&quot;btn btn-primary&quot; data-toggle=&quot;modal&quot; data-target=&quot;#product_view&quot;&amp;gt;&amp;lt;i class=&quot;fa fa-search&quot;&amp;gt;&amp;lt;/i&amp;gt; Quick View&amp;lt;/button&amp;gt;
                &amp;lt;/div&amp;gt;
                &amp;lt;div class=&quot;space-ten&quot;&amp;gt;&amp;lt;/div&amp;gt;
              &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;&lt;/pre&gt;
Lanjut copas juga code HTML popupnya dibawah ini :&lt;br /&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt;&amp;lt;div class=&quot;modal fade product_view&quot; id=&quot;product_view&quot;&amp;gt;
    &amp;lt;div class=&quot;modal-dialog&quot;&amp;gt;
        &amp;lt;div class=&quot;modal-content&quot;&amp;gt;
            &amp;lt;div class=&quot;modal-header&quot;&amp;gt;
                &amp;lt;a href=&quot;#&quot; data-dismiss=&quot;modal&quot; class=&quot;class pull-right&quot;&amp;gt;&amp;lt;span class=&quot;glyphicon glyphicon-remove&quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;
                &amp;lt;h3 class=&quot;modal-title&quot;&amp;gt;HTML5 is a markup language&amp;lt;/h3&amp;gt;
            &amp;lt;/div&amp;gt;
            &amp;lt;div class=&quot;modal-body&quot;&amp;gt;
                &amp;lt;div class=&quot;row&quot;&amp;gt;
                    &amp;lt;div class=&quot;col-md-6 product_img&quot;&amp;gt;
                        &amp;lt;img src=&quot;http://img.bbystatic.com/BestBuy_US/images/products/5613/5613060_sd.jpg&quot; class=&quot;img-responsive&quot;&amp;gt;
                    &amp;lt;/div&amp;gt;
                    &amp;lt;div class=&quot;col-md-6 product_content&quot;&amp;gt;
                        &amp;lt;h4&amp;gt;Product Id: &amp;lt;span&amp;gt;51526&amp;lt;/span&amp;gt;&amp;lt;/h4&amp;gt;
                        &amp;lt;div class=&quot;rating&quot;&amp;gt;
                            &amp;lt;span class=&quot;glyphicon glyphicon-star&quot;&amp;gt;&amp;lt;/span&amp;gt;
                            &amp;lt;span class=&quot;glyphicon glyphicon-star&quot;&amp;gt;&amp;lt;/span&amp;gt;
                            &amp;lt;span class=&quot;glyphicon glyphicon-star&quot;&amp;gt;&amp;lt;/span&amp;gt;
                            &amp;lt;span class=&quot;glyphicon glyphicon-star&quot;&amp;gt;&amp;lt;/span&amp;gt;
                            &amp;lt;span class=&quot;glyphicon glyphicon-star&quot;&amp;gt;&amp;lt;/span&amp;gt;
                            (10 reviews)
                        &amp;lt;/div&amp;gt;
                        &amp;lt;p&amp;gt;Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry&#39;s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.Lorem Ipsum is simply dummy text of the printing and typesetting industry.&amp;lt;/p&amp;gt;
                        &amp;lt;h3 class=&quot;cost&quot;&amp;gt;&amp;lt;span class=&quot;glyphicon glyphicon-usd&quot;&amp;gt;&amp;lt;/span&amp;gt; 75.00 &amp;lt;small class=&quot;pre-cost&quot;&amp;gt;&amp;lt;span class=&quot;glyphicon glyphicon-usd&quot;&amp;gt;&amp;lt;/span&amp;gt; 60.00&amp;lt;/small&amp;gt;&amp;lt;/h3&amp;gt;
                        &amp;lt;div class=&quot;row&quot;&amp;gt;
                            &amp;lt;div class=&quot;col-md-4 col-sm-6 col-xs-12&quot;&amp;gt;
                                &amp;lt;select class=&quot;form-control&quot; name=&quot;select&quot;&amp;gt;
                                    &amp;lt;option value=&quot;&quot; selected=&quot;&quot;&amp;gt;Color&amp;lt;/option&amp;gt;
                                    &amp;lt;option value=&quot;black&quot;&amp;gt;Black&amp;lt;/option&amp;gt;
                                    &amp;lt;option value=&quot;white&quot;&amp;gt;White&amp;lt;/option&amp;gt;
                                    &amp;lt;option value=&quot;gold&quot;&amp;gt;Gold&amp;lt;/option&amp;gt;
                                    &amp;lt;option value=&quot;rose gold&quot;&amp;gt;Rose Gold&amp;lt;/option&amp;gt;
                                &amp;lt;/select&amp;gt;
                            &amp;lt;/div&amp;gt;
                            &amp;lt;!-- end col --&amp;gt;
                            &amp;lt;div class=&quot;col-md-4 col-sm-6 col-xs-12&quot;&amp;gt;
                                &amp;lt;select class=&quot;form-control&quot; name=&quot;select&quot;&amp;gt;
                                    &amp;lt;option value=&quot;&quot;&amp;gt;Capacity&amp;lt;/option&amp;gt;
                                    &amp;lt;option value=&quot;&quot;&amp;gt;16GB&amp;lt;/option&amp;gt;
                                    &amp;lt;option value=&quot;&quot;&amp;gt;32GB&amp;lt;/option&amp;gt;
                                    &amp;lt;option value=&quot;&quot;&amp;gt;64GB&amp;lt;/option&amp;gt;
                                    &amp;lt;option value=&quot;&quot;&amp;gt;128GB&amp;lt;/option&amp;gt;
                                &amp;lt;/select&amp;gt;
                            &amp;lt;/div&amp;gt;
                            &amp;lt;!-- end col --&amp;gt;
                            &amp;lt;div class=&quot;col-md-4 col-sm-12&quot;&amp;gt;
                                &amp;lt;select class=&quot;form-control&quot; name=&quot;select&quot;&amp;gt;
                                    &amp;lt;option value=&quot;&quot; selected=&quot;&quot;&amp;gt;QTY&amp;lt;/option&amp;gt;
                                    &amp;lt;option value=&quot;&quot;&amp;gt;1&amp;lt;/option&amp;gt;
                                    &amp;lt;option value=&quot;&quot;&amp;gt;2&amp;lt;/option&amp;gt;
                                    &amp;lt;option value=&quot;&quot;&amp;gt;3&amp;lt;/option&amp;gt;
                                &amp;lt;/select&amp;gt;
                            &amp;lt;/div&amp;gt;
                            &amp;lt;!-- end col --&amp;gt;
                        &amp;lt;/div&amp;gt;
                        &amp;lt;div class=&quot;space-ten&quot;&amp;gt;&amp;lt;/div&amp;gt;
                        &amp;lt;div class=&quot;btn-ground&quot;&amp;gt;
                            &amp;lt;button type=&quot;button&quot; class=&quot;btn btn-primary&quot;&amp;gt;&amp;lt;span class=&quot;glyphicon glyphicon-shopping-cart&quot;&amp;gt;&amp;lt;/span&amp;gt; Add To Cart&amp;lt;/button&amp;gt;
                            &amp;lt;button type=&quot;button&quot; class=&quot;btn btn-primary&quot;&amp;gt;&amp;lt;span class=&quot;glyphicon glyphicon-heart&quot;&amp;gt;&amp;lt;/span&amp;gt; Add To Wishlist&amp;lt;/button&amp;gt;
                        &amp;lt;/div&amp;gt;
                    &amp;lt;/div&amp;gt;
                &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;&lt;/pre&gt;
Karena diawal sudah saya sampaikan ini menggunakan framework bootstrap 3.7, jadi untuk tampilan yang baik silakan download dulu bootstrapnya distus resminya, diatas adalah cara membuat&amp;nbsp;&lt;b&gt;Ecommerce Popup Produk HTML 5 &lt;/b&gt;semoga dapat membantu kesulitan anda untuk membuat tampilan website yang murah dan tidak murahan silakan dipelajari dan dikembangkan.</content><link rel='replies' type='application/atom+xml' href='https://lacodeid.blogspot.com/feeds/7070175230621299575/comments/default' title='Posting Komentar'/><link rel='replies' type='text/html' href='https://lacodeid.blogspot.com/2018/02/ecommerce-popup-produk-html-5.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/7070175230621299575'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/7070175230621299575'/><link rel='alternate' type='text/html' href='https://lacodeid.blogspot.com/2018/02/ecommerce-popup-produk-html-5.html' title='Ecommerce Popup Produk HTML 5'/><author><name>Lacode</name><uri>http://www.blogger.com/profile/15545994188230698518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQb5PEiY9fB6f50XP4EYIkS7rYvPJYlbBgKIBxi_Gxo5qrAt_gyJ4g7k5lPcdblxnb9Z7kYdaFWQ7PhNwJ05vmym7ZXWm4GKeVybdnViePAndrpaSf33X1WZivdwGvh1Ig9N5S1CApJOo/s72-c/ec.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Jakarta, Indonesia</georss:featurename><georss:point>-6.17511 106.86503949999997</georss:point><georss:box>-8.1968405 104.28325249999996 -4.1533795 109.44682649999997</georss:box></entry><entry><id>tag:blogger.com,1999:blog-3630068095685918406.post-2637863035845373371</id><published>2018-02-15T01:18:00.000+07:00</published><updated>2018-02-15T01:18:30.897+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AMP"/><category scheme="http://www.blogger.com/atom/ns#" term="HTML"/><title type='text'>Convert HTML ke AMP</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBbIMTtmaEHaPG1nCCo1jcZppT5r3AE_mQkLGrmzGLivXYDbqyHqZMwatGBKbSX39IoEqyLxFQlundLaNAtmL4jXPFsN0vjWyntXIcWw6g1R_EeLH5Hqv4jSWHjJaKVjIgOB380nP3mHI/s1600/logo-og-image.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Convert HTML ke AMP&quot; border=&quot;0&quot; data-original-height=&quot;630&quot; data-original-width=&quot;1200&quot; height=&quot;168&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBbIMTtmaEHaPG1nCCo1jcZppT5r3AE_mQkLGrmzGLivXYDbqyHqZMwatGBKbSX39IoEqyLxFQlundLaNAtmL4jXPFsN0vjWyntXIcWw6g1R_EeLH5Hqv4jSWHjJaKVjIgOB380nP3mHI/s320/logo-og-image.jpg&quot; style=&quot;heigth: auto; width: 100%;&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Ditutorial kali WriteCode akan menulis cara&amp;nbsp;&amp;nbsp;&lt;b&gt;Convert HTML ke AMP&lt;/b&gt; (&lt;b&gt;Accelerated Mobile Pages Project),&lt;/b&gt;&amp;nbsp; Sebelum masuk ke pembahasan saya akan mejelaskan sedikit tentang AMP Project adalah inisiatif sumber terbuka yang bertujuan untuk membuat web lebih baik bagi semua kalangan. Proyek ini memungkinkan pembuatan situs dan iklan dengan performa tinggi, cepat, dan konsisten di berbagai perangkat dan platform distribusi. Untuk di Blog AMP ini lebih sulit untuk terapkan karena anda harus membuat&amp;nbsp; kodingan kedalam blog anda, tapi untuk yang menggunakan wordpress lebih mudah untuk dipasang karena ada plugin yang digunakan untuk membuat halaman AMP ini. Kembali ke pembahasan awal disini saya akan berbagi cara&amp;nbsp;&lt;b&gt;Convert HTML ke AMP,&amp;nbsp;&lt;/b&gt;syarat untuk membuat halaman AMP seperti dibawah ini :&lt;br /&gt;
&lt;br /&gt;
1.Pengetahuan dasar tentang HTML, CSS, dan JavaScript&lt;br /&gt;
2.Browser pilihan Anda yang bisa memeriksa konsol JavaScript&lt;br /&gt;
3.Editor teks pilihan Anda&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Membangun halaman HTML biasa&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
Untuk Kode HTML nya bisa anda copas dibawah ini :&lt;br /&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt;&amp;lt;!doctype html&amp;gt;
&amp;lt;html lang=&quot;en&quot;&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;News Article&amp;lt;/title&amp;gt;
    &amp;lt;link href=&quot;base.css&quot; rel=&quot;stylesheet&quot; /&amp;gt;
    &amp;lt;script type=&quot;text/javascript&quot; src=&quot;base.js&quot;&amp;gt;&amp;lt;/script&amp;gt;
  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt;
    &amp;lt;header&amp;gt;
      News Site
    &amp;lt;/header&amp;gt;
    &amp;lt;article&amp;gt;
      &amp;lt;h1&amp;gt;Article Name&amp;lt;/h1&amp;gt;
      &amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam egestas tortor sapien, non tristique ligula accumsan eu.&amp;lt;/p&amp;gt;
    &amp;lt;/article&amp;gt;
    &amp;lt;img src=&quot;mountains.jpg&quot;&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/pre&gt;
Diatas adalah kode HTML yang belum dalam bentuk AMP, apa saja yang harus dilakukan untuk menjadikan kode HTML diatas menjadi halam AMP bisa anda lihat perubahanya di kode HTML dibawah ini :&lt;br /&gt;
&lt;br /&gt;
Pertama anda harus menambahkan baris ini ke bagian bawah tag &lt;b&gt;&lt;i&gt;&amp;lt;head&amp;gt;&amp;nbsp;&lt;/i&gt;&lt;/b&gt;:&lt;br /&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt;&amp;lt;script async src=&quot;https://cdn.ampproject.org/v0.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/pre&gt;
Biasanya halaman yang sudah dalam bentuk AMP memiliki tanda Petir seperti dibawah ini :&lt;br /&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt;&amp;lt;!doctype html&amp;gt;
&amp;lt;html ⚡ lang=&quot;en&quot;&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;meta charset=&quot;utf-8&quot; /&amp;gt;
    &amp;lt;meta name=&quot;viewport&quot; content=&quot;width=device-width,minimum-scale=1,initial-scale=1&quot;&amp;gt;

    &amp;lt;link rel=&quot;canonical&quot; href=&quot;/article.html&quot;&amp;gt;
    &amp;lt;link rel=&quot;shortcut icon&quot; href=&quot;amp_favicon.png&quot;&amp;gt;

    &amp;lt;title&amp;gt;News Article&amp;lt;/title&amp;gt;

    &amp;lt;style amp-boilerplate&amp;gt;body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}&amp;lt;/style&amp;gt;&amp;lt;noscript&amp;gt;&amp;lt;style amp-boilerplate&amp;gt;body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}&amp;lt;/style&amp;gt;&amp;lt;/noscript&amp;gt;
    &amp;lt;style amp-custom&amp;gt;
      body {
        width: auto;
        margin: 0;
        padding: 0;
      }

      header {
        background: Tomato;
        color: white;
        font-size: 2em;
        text-align: center;
      }

      h1 {
        margin: 0;
        padding: 0.5em;
        background: white;
        box-shadow: 0px 3px 5px grey;
      }

      p {
        padding: 0.5em;
        margin: 0.5em;
      }
    &amp;lt;/style&amp;gt;
    &amp;lt;script async src=&quot;https://cdn.ampproject.org/v0.js&quot;&amp;gt;&amp;lt;/script&amp;gt;
  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt;
    &amp;lt;header&amp;gt;
      News Site
    &amp;lt;/header&amp;gt;
    &amp;lt;article&amp;gt;
      &amp;lt;h1&amp;gt;Article Name&amp;lt;/h1&amp;gt;

      &amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam egestas tortor sapien, non tristique ligula accumsan eu.&amp;lt;/p&amp;gt;

      &amp;lt;amp-img src=&quot;mountains.jpg&quot; layout=&quot;responsive&quot; width=&quot;266&quot; height=&quot;150&quot;&amp;gt;&amp;lt;/amp-img&amp;gt;
    &amp;lt;/article&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/pre&gt;
Perhatikan dengan teliti perbedaannya kedua kode HTML diatas. Untuk uji coba halaman yang sudah dipasang AMP anda dapat menambahkan &lt;i&gt;#develoment=1 &lt;/i&gt;atau seperti dibawah ini :&lt;br /&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt;http://localhost:8000/article.amp.html#development=1&lt;/pre&gt;
Diatas adalah tutorial singkat cara&amp;nbsp;Convert HTML ke AMP, silakan dipelajari dan dikembangkan.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://lacodeid.blogspot.com/feeds/2637863035845373371/comments/default' title='Posting Komentar'/><link rel='replies' type='text/html' href='https://lacodeid.blogspot.com/2018/02/convert-html-ke-amp.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/2637863035845373371'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/2637863035845373371'/><link rel='alternate' type='text/html' href='https://lacodeid.blogspot.com/2018/02/convert-html-ke-amp.html' title='Convert HTML ke AMP'/><author><name>Lacode</name><uri>http://www.blogger.com/profile/15545994188230698518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBbIMTtmaEHaPG1nCCo1jcZppT5r3AE_mQkLGrmzGLivXYDbqyHqZMwatGBKbSX39IoEqyLxFQlundLaNAtmL4jXPFsN0vjWyntXIcWw6g1R_EeLH5Hqv4jSWHjJaKVjIgOB380nP3mHI/s72-c/logo-og-image.jpg" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Jakarta, Indonesia</georss:featurename><georss:point>-6.17511 106.86503949999997</georss:point><georss:box>-8.1968405 104.28325249999996 -4.1533795 109.44682649999997</georss:box></entry><entry><id>tag:blogger.com,1999:blog-3630068095685918406.post-2114317184766060938</id><published>2018-02-14T13:31:00.000+07:00</published><updated>2018-02-20T21:42:33.957+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="css"/><title type='text'>CSS Grid Hover Responsive</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhruxXiftSlVyboSUBBcgDxGRbmPGqoUxSa4_H8sfjjyA6QkSHNzHeE6SZyhhKg62PjiRH92PfpVvIyvJluxUAwTKhylerhlkf78l4NdwLt8bnm6nhV2B6b8ox5wctUYqs3tQMO99QUhC4/s1600/grid-hover.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;437&quot; data-original-width=&quot;999&quot; height=&quot;278&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhruxXiftSlVyboSUBBcgDxGRbmPGqoUxSa4_H8sfjjyA6QkSHNzHeE6SZyhhKg62PjiRH92PfpVvIyvJluxUAwTKhylerhlkf78l4NdwLt8bnm6nhV2B6b8ox5wctUYqs3tQMO99QUhC4/s640/grid-hover.jpg&quot; style=&quot;height: auto; width: 100%;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Ditutorial kali ini masih membahas seputar masalah css dan grid dengan judul CSS Grid Hover Responsive, langsung saja tanpa basa basi kita menuju kodingannya, dibawah ini koding CSS nya silakan anda copas kedalam lembar kerja anda&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 1&lt;/b&gt;&lt;br /&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt;&amp;lt;style class=&quot;cp-pen-styles&quot;&amp;gt;body{
  margin: 0;
  padding: 0;
  font-family: sans-serif;
}

h1, h2, h3, h4, h5, h6, p{
  color: #fff;
  font-weight: 200;
}

a{
  text-decoration: none;
}

/* GRID */

.grid { max-width: 940px; width: 100%; margin: 0 auto; }

.four { 
 width: 32.26%; 
}

/* COLUMNS */

.col {
  display: block;
  float:left;
  margin: 1% 0 1% 1.6%;
}

.col:first-of-type { margin-left: 0; }

/* CLEARFIX */

.cf:before,
.cf:after {
    content: &quot; &quot;;
    display: table; 
}

.cf:after { clear: both; }
.cf { *zoom: 1; }

/* GENERAL STYLES FOR BOX AND OVERLAY */

.box {
  display: block;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #bbb;
  text-align: center;
  position: relative;
}

.overlay{
  width: 100%;
  height:100%;
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
}

/* SLIDE IN */

.slide-in .overlay{
  background-color: #6addaa;
  line-height: 200px;
  color: #fff;
  transform: translateX(-100%);
  -webkit-transition: transform 0.5s ease-out;
  -o-transition: transform 0.5s ease-out;
  transition: transform 0.5s ease-out;
}

.slide-in .box:hover .overlay{
  transform: translateX(0);
}

/* SLIDE UP */

.slide-up .overlay{
  background-color: #3dcbe8;
  line-height: 200px;
  color: #fff;
  transform: translateY(100%);
  -webkit-transition: transform 0.5s ease-out;
  -o-transition: transform 0.5s ease-out;
  transition: transform 0.5s ease-out;
}

.slide-up .box:hover .overlay{
  transform: translateY(0);
}

/* SLIDE DOWN DELAY */

.slide-down-delay .overlay{
  background-color: #ee6f8c;
  line-height: 200px;
  color: #fff;
  transform: translateY(-100%);
  -webkit-transition: transform 0.5s ease-out;
  -o-transition: transform 0.5s ease-out;
  transition: transform 0.5s ease-out;
}

.slide-down-delay .box:hover .overlay{
  transform: translateY(0);
}

.slide-down-delay .overlay i{
  transform: translateY(-80%);
  opacity: 0;
  -webkit-transition: transform 0.5s linear, opacity 0.5s linear 0.5s;
  -o-transition: transform 0.5s linear, opacity 0.5s linear 0.5s;
  transition: transform 0.5s linear, opacity 0.5s linear 0.5s;
}

.slide-down-delay .box:hover .overlay i{
  transform: translateY(0);
  opacity: 1;
}

/* ROTATE */

.rotate .overlay{
  background-color: #6d94bb;
  line-height: 200px;
  color: #fff;
  transform-origin: 0 0;
  transform: rotate(90deg);
  -webkit-transition: transform 0.5s ease-in-out;
  -o-transition: transform 0.5s ease-in-out;
  transition: transform 0.5s ease-in-out;
}

.rotate .box:hover .overlay{
  transform: rotate(0deg);
}

/* SCALE */

.scale .overlay{
  background-color: #efcb5e;
  line-height: 200px;
  color: #fff;
  transform: translateX(210%) scale(3);
  -webkit-transition: transform 0.6s ease-in-out;
  -o-transition: transform 0.6s ease-in-out;
  transition: transform 0.6s ease-in-out;
}

.scale .box:hover .overlay{
  transform: translateX(0) scale(1);
}

/* FLIP */

.flip .overlay{
  background-color: #009688;
  line-height: 200px;
  color: #fff;
  opacity: 0;
  transform: rotateY(180deg);
  -webkit-transition: transform 0.6s ease-in-out 0.3s, opacity 0.3s ease-in-out;
  -o-transition: transform 0.6s ease-in-out 0.3s, opacity 0.3s ease-in-out;
  transition: transform 0.6s ease-in-out 0.3s, opacity 0.3s ease-in-out;
}

.flip .box:hover .overlay{
  opacity: 1;
  transform: rotateY(0deg);
}

/* SKEW */

.skew .overlay{
  background-color: #f44336;
  line-height: 200px;
  color: #fff;
  opacity: 0;
  transform: skewX(-10deg);
  -webkit-transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  -o-transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.skew .box:hover .overlay{
  transform: skewX(0deg);
  opacity: 1;
}

/* CORNER */

.corner-bottom .overlay{
  background-color: #9c27b0;
  line-height: 200px;
  color: #fff;
  transform: translate(100%, 100%);
  -webkit-transition: transform 0.4s ease-in-out;
  -o-transition: transform 0.4s ease-in-out;
  transition: transform 0.4s ease-in-out;
}

.corner-bottom .box:hover .overlay{
   transform: translate(0, 0);
}

/* CORNER */

.corner-top .overlay{
  background-color: #ff5722;
  line-height: 200px;
  color: #fff;
  transform: translate(-100%, -100%);
  -webkit-transition: transform 0.4s ease-in-out;
  -o-transition: transform 0.4s ease-in-out;
  transition: transform 0.4s ease-in-out;
}

.corner-top .box:hover .overlay{
   transform: translate(0, 0);
}&amp;lt;/style&amp;gt;&lt;/pre&gt;
&lt;b&gt;Step 2&lt;/b&gt;&lt;br /&gt;
Untuk kode HTML nya bisa anda copas dibawah ini :&lt;br /&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt;&amp;lt;div class=&quot;grid&quot;&amp;gt;
  &amp;lt;div class=&quot;row cf&quot;&amp;gt;
   &amp;lt;div class=&quot;slide-in four col&quot;&amp;gt;
    &amp;lt;div class=&quot;box&quot;&amp;gt;
     &amp;lt;span class=&quot;original&quot;&amp;gt;
      &amp;lt;h1&amp;gt;Hover!&amp;lt;/h1&amp;gt;
      &amp;lt;p&amp;gt;Slide in from left&amp;lt;/p&amp;gt;
     &amp;lt;/span&amp;gt;
     &amp;lt;div class=&quot;overlay&quot;&amp;gt;
      &amp;lt;i class=&quot;fa fa-commenting-o fa-3x&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;lt;/i&amp;gt;
     &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
   &amp;lt;/div&amp;gt;
   &amp;lt;div class=&quot;slide-up four col&quot;&amp;gt;
    &amp;lt;div class=&quot;box&quot;&amp;gt;
     &amp;lt;span class=&quot;original&quot;&amp;gt;
      &amp;lt;h1&amp;gt;Hover!&amp;lt;/h1&amp;gt;
      &amp;lt;p&amp;gt;Slide up&amp;lt;/p&amp;gt;
     &amp;lt;/span&amp;gt;
     &amp;lt;div class=&quot;overlay&quot;&amp;gt;
      &amp;lt;i class=&quot;fa fa-cogs fa-3x&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;lt;/i&amp;gt;
     &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
   &amp;lt;/div&amp;gt;
   &amp;lt;div class=&quot;slide-down-delay four col&quot;&amp;gt;
    &amp;lt;div class=&quot;box&quot;&amp;gt;
     &amp;lt;span class=&quot;original&quot;&amp;gt;
      &amp;lt;h1&amp;gt;Hover!&amp;lt;/h1&amp;gt;
      &amp;lt;p&amp;gt;Slide down with icon delay&amp;lt;/p&amp;gt;
     &amp;lt;/span&amp;gt;
     &amp;lt;div class=&quot;overlay&quot;&amp;gt;
      &amp;lt;i class=&quot;fa fa-users fa-3x&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;lt;/i&amp;gt;
     &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
   &amp;lt;/div&amp;gt;
  &amp;lt;/div&amp;gt;
  &amp;lt;div class=&quot;row cf&quot;&amp;gt;
   &amp;lt;div class=&quot;rotate four col&quot;&amp;gt;
    &amp;lt;div class=&quot;box&quot;&amp;gt;
     &amp;lt;span class=&quot;original&quot;&amp;gt;
      &amp;lt;h1&amp;gt;Hover!&amp;lt;/h1&amp;gt;
      &amp;lt;p&amp;gt;Rotate into view&amp;lt;/p&amp;gt;
     &amp;lt;/span&amp;gt;
     &amp;lt;div class=&quot;overlay&quot;&amp;gt;
      &amp;lt;i class=&quot;fa fa-star fa-3x&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;lt;/i&amp;gt;
     &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
   &amp;lt;/div&amp;gt;
   &amp;lt;div class=&quot;scale four col&quot;&amp;gt;
    &amp;lt;div class=&quot;box&quot;&amp;gt;
     &amp;lt;span class=&quot;original&quot;&amp;gt;
      &amp;lt;h1&amp;gt;Hover!&amp;lt;/h1&amp;gt;
      &amp;lt;p&amp;gt;Slide in from right and scale&amp;lt;/p&amp;gt;
     &amp;lt;/span&amp;gt;
     &amp;lt;div class=&quot;overlay&quot;&amp;gt;
      &amp;lt;i class=&quot;fa fa-trophy fa-3x&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;lt;/i&amp;gt;
     &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
   &amp;lt;/div&amp;gt;
   &amp;lt;div class=&quot;flip four col&quot;&amp;gt;
    &amp;lt;div class=&quot;box&quot;&amp;gt;
     &amp;lt;span class=&quot;original&quot;&amp;gt;
      &amp;lt;h1&amp;gt;Hover!&amp;lt;/h1&amp;gt;
      &amp;lt;p&amp;gt;Fade in then flip&amp;lt;/p&amp;gt;
     &amp;lt;/span&amp;gt;
     &amp;lt;div class=&quot;overlay&quot;&amp;gt;
      &amp;lt;i class=&quot;fa fa-thumbs-up fa-3x&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;lt;/i&amp;gt;
     &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
   &amp;lt;/div&amp;gt;
  &amp;lt;/div&amp;gt;
  &amp;lt;div class=&quot;row cf&quot;&amp;gt;
   &amp;lt;div class=&quot;skew four col&quot;&amp;gt;
    &amp;lt;div class=&quot;box&quot;&amp;gt;
     &amp;lt;span class=&quot;original&quot;&amp;gt;
      &amp;lt;h1&amp;gt;Hover!&amp;lt;/h1&amp;gt;
      &amp;lt;p&amp;gt;Fade in and skew&amp;lt;/p&amp;gt;
     &amp;lt;/span&amp;gt;
     &amp;lt;div class=&quot;overlay&quot;&amp;gt;
      &amp;lt;i class=&quot;fa fa-rocket fa-3x&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;lt;/i&amp;gt;
     &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
   &amp;lt;/div&amp;gt;
   &amp;lt;div class=&quot;corner-bottom four col&quot;&amp;gt;
    &amp;lt;div class=&quot;box&quot;&amp;gt;
     &amp;lt;span class=&quot;original&quot;&amp;gt;
      &amp;lt;h1&amp;gt;Hover!&amp;lt;/h1&amp;gt;
      &amp;lt;p&amp;gt;Slide in from bottom corner&amp;lt;/p&amp;gt;
     &amp;lt;/span&amp;gt;
     &amp;lt;div class=&quot;overlay&quot;&amp;gt;
      &amp;lt;i class=&quot;fa fa-coffee fa-3x&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;lt;/i&amp;gt;
     &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
   &amp;lt;/div&amp;gt;
   &amp;lt;div class=&quot;corner-top four col&quot;&amp;gt;
    &amp;lt;div class=&quot;box&quot;&amp;gt;
     &amp;lt;span class=&quot;original&quot;&amp;gt;
      &amp;lt;h1&amp;gt;Hover!&amp;lt;/h1&amp;gt;
      &amp;lt;p&amp;gt;Slide in from top corner&amp;lt;/p&amp;gt;
     &amp;lt;/span&amp;gt;
     &amp;lt;div class=&quot;overlay&quot;&amp;gt;
      &amp;lt;i class=&quot;fa fa-calendar fa-3x&quot; aria-hidden=&quot;true&quot;&amp;gt;&amp;lt;/i&amp;gt;
     &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
   &amp;lt;/div&amp;gt;
  &amp;lt;/div&amp;gt;
 &amp;lt;/div&amp;gt;&lt;/pre&gt;
&amp;nbsp;Untuk bootstrapnya silakan anda download di situs resminya bootstrap download free, semoga tutorial cara membuat&amp;nbsp;CSS Grid Hover Responsive bisa membantu dan bermanfaat. Baca juga : &lt;a href=&quot;https://lacodeid.blogspot.com/2018/02/membuat-halaman-amp-html-pertama.html&quot; rel=&quot;nofollow&quot;&gt;Membuat halaman AMP HTML pertama&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='https://lacodeid.blogspot.com/feeds/2114317184766060938/comments/default' title='Posting Komentar'/><link rel='replies' type='text/html' href='https://lacodeid.blogspot.com/2018/02/css-grid-hover-responsive.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/2114317184766060938'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/2114317184766060938'/><link rel='alternate' type='text/html' href='https://lacodeid.blogspot.com/2018/02/css-grid-hover-responsive.html' title='CSS Grid Hover Responsive'/><author><name>Lacode</name><uri>http://www.blogger.com/profile/15545994188230698518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhruxXiftSlVyboSUBBcgDxGRbmPGqoUxSa4_H8sfjjyA6QkSHNzHeE6SZyhhKg62PjiRH92PfpVvIyvJluxUAwTKhylerhlkf78l4NdwLt8bnm6nhV2B6b8ox5wctUYqs3tQMO99QUhC4/s72-c/grid-hover.jpg" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Jakarta, Indonesia</georss:featurename><georss:point>-6.17511 106.86503949999997</georss:point><georss:box>-8.1968405 104.28325249999996 -4.1533795 109.44682649999997</georss:box></entry><entry><id>tag:blogger.com,1999:blog-3630068095685918406.post-474554830007596651</id><published>2018-02-13T22:59:00.002+07:00</published><updated>2018-02-20T21:20:29.053+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="css"/><title type='text'>3 Langka Mudah Membuat Grid Pinterest Responsive</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi81-ztlckKktU_W8OYmPGyNqzJdp9XrUdP4z9k-W-9QAhMvLzEBtofT20yY9ltvQN82F6KVxZLWLxIpg114-dfFfPygdIkzferbyF0UI6TchDNRopgiEzgoXsHkEPZ3OifSaQe9LsUL9A/s1600/grid2.jpeg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;3 Langka Mudah Membuat Grid Pinterest Responsive&quot; border=&quot;0&quot; data-original-height=&quot;653&quot; data-original-width=&quot;1229&quot; height=&quot;340&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi81-ztlckKktU_W8OYmPGyNqzJdp9XrUdP4z9k-W-9QAhMvLzEBtofT20yY9ltvQN82F6KVxZLWLxIpg114-dfFfPygdIkzferbyF0UI6TchDNRopgiEzgoXsHkEPZ3OifSaQe9LsUL9A/s640/grid2.jpeg&quot; style=&quot;height: auto; width: 100%;&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
WriteCode Tutorial&amp;nbsp;Membuat Grid Pinterest Responsive pasti anda pernah membayangkan bagaimana cara membuat grid seperti media sosial Pinterest, disini kami akan memberikan cara membuatnya, langkah membuat grid seperti Pinterest cukup mudah bisa dengan menggikuti tutorial sederhana ini anda bisa membuatnya, langsung saja menuju ke TKP...&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 1&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
Silakan anda copas CSSnya dibawah ini :&lt;br /&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt;/*
Ref:
Thanks to:
http://www.jqueryscript.net/layout/Simple-jQuery-Plugin-To-Create-Pinterest-Style-Grid-Layout-Pinterest-Grid.html
*/

body {
 background-color:#eee;   
}    

#pinBoot {
  position: relative;
  max-width: 100%;
  width: 100%;
}
img {
  width: 100%;
  max-width: 100%;
  height: auto;
}
.white-panel {
  position: absolute;
  background: white;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3);
  padding: 10px;
}
/*
stylize any heading tags withing white-panel below
*/

.white-panel h1 {
  font-size: 1em;
}
.white-panel h1 a {
  color: #A92733;
}
.white-panel:hover {
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
  margin-top: -5px;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}&lt;/pre&gt;
&lt;b&gt;Step 2&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
Silakan Copas Untuk Javascriptnya dibawah ini :&lt;br /&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt;$(document).ready(function() {
$(&#39;#pinBoot&#39;).pinterest_grid({
no_columns: 4,
padding_x: 10,
padding_y: 10,
margin_bottom: 50,
single_column_breakpoint: 700
});
});
;(function ($, window, document, undefined) {
    var pluginName = &#39;pinterest_grid&#39;,
        defaults = {
            padding_x: 10,
            padding_y: 10,
            no_columns: 3,
            margin_bottom: 50,
            single_column_breakpoint: 700
        },
        columns,
        $article,
        article_width;

    function Plugin(element, options) {
        this.element = element;
        this.options = $.extend({}, defaults, options) ;
        this._defaults = defaults;
        this._name = pluginName;
        this.init();
    }

    Plugin.prototype.init = function () {
        var self = this,
            resize_finish;

        $(window).resize(function() {
            clearTimeout(resize_finish);
            resize_finish = setTimeout( function () {
                self.make_layout_change(self);
            }, 11);
        });

        self.make_layout_change(self);

        setTimeout(function() {
            $(window).resize();
        }, 500);
    };

    Plugin.prototype.calculate = function (single_column_mode) {
        var self = this,
            tallest = 0,
            row = 0,
            $container = $(this.element),
            container_width = $container.width();
            $article = $(this.element).children();

        if(single_column_mode === true) {
            article_width = $container.width() - self.options.padding_x;
        } else {
            article_width = ($container.width() - self.options.padding_x * self.options.no_columns) / self.options.no_columns;
        }

        $article.each(function() {
            $(this).css(&#39;width&#39;, article_width);
        });

        columns = self.options.no_columns;

        $article.each(function(index) {
            var current_column,
                left_out = 0,
                top = 0,
                $this = $(this),
                prevAll = $this.prevAll(),
                tallest = 0;

            if(single_column_mode === false) {
                current_column = (index % columns);
            } else {
                current_column = 0;
            }

            for(var t = 0; t &amp;lt; columns; t++) {
                $this.removeClass(&#39;c&#39;+t);
            }

            if(index % columns === 0) {
                row++;
            }

            $this.addClass(&#39;c&#39; + current_column);
            $this.addClass(&#39;r&#39; + row);

            prevAll.each(function(index) {
                if($(this).hasClass(&#39;c&#39; + current_column)) {
                    top += $(this).outerHeight() + self.options.padding_y;
                }
            });

            if(single_column_mode === true) {
                left_out = 0;
            } else {
                left_out = (index % columns) * (article_width + self.options.padding_x);
            }

            $this.css({
                &#39;left&#39;: left_out,
                &#39;top&#39; : top
            });
        });

        this.tallest($container);
        $(window).resize();
    };

    Plugin.prototype.tallest = function (_container) {
        var column_heights = [],
            largest = 0;

        for(var z = 0; z &amp;lt; columns; z++) {
            var temp_height = 0;
            _container.find(&#39;.c&#39;+z).each(function() {
                temp_height += $(this).outerHeight();
            });
            column_heights[z] = temp_height;
        }

        largest = Math.max.apply(Math, column_heights);
        _container.css(&#39;height&#39;, largest + (this.options.padding_y + this.options.margin_bottom));
    };

    Plugin.prototype.make_layout_change = function (_self) {
        if($(window).width() &amp;lt; _self.options.single_column_breakpoint) {
            _self.calculate(true);
        } else {
            _self.calculate(false);
        }
    };

    $.fn[pluginName] = function (options) {
        return this.each(function () {
            if (!$.data(this, &#39;plugin_&#39; + pluginName)) {
                $.data(this, &#39;plugin_&#39; + pluginName,
                new Plugin(this, options));
            }
        });
    }

})(jQuery, window, document);&lt;/pre&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;Step 3&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
Untuk kode HTML dibawah copas kelembar kerja anda :&lt;br /&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt;&amp;lt;div class=&quot;container&quot;&amp;gt;
  &amp;lt;div class=&quot;row&quot;&amp;gt;
    &amp;lt;h2&amp;gt;Pinterest Responsive Grid&amp;lt;/h2&amp;gt;
    &amp;lt;section id=&quot;pinBoot&quot;&amp;gt;

      &amp;lt;article class=&quot;white-panel&quot;&amp;gt;&amp;lt;img src=&quot;http://i.imgur.com/sDLIAZD.png&quot; alt=&quot;&quot;&amp;gt;
        &amp;lt;h4&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;Title 1&amp;lt;/a&amp;gt;&amp;lt;/h4&amp;gt;
        &amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute
          irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&amp;lt;/p&amp;gt;
      &amp;lt;/article&amp;gt;

      &amp;lt;article class=&quot;white-panel&quot;&amp;gt; &amp;lt;img src=&quot;http://i.imgur.com/8lhFhc1.gif&quot; alt=&quot;&quot;&amp;gt;
        &amp;lt;h4&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;Title 2&amp;lt;/a&amp;gt;&amp;lt;/h4&amp;gt;
        &amp;lt;p&amp;gt;Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&amp;lt;/p&amp;gt;
      &amp;lt;/article&amp;gt;

      &amp;lt;article class=&quot;white-panel&quot;&amp;gt; &amp;lt;img src=&quot;http://i.imgur.com/xOIMvAe.jpg&quot; alt=&quot;&quot;&amp;gt;
        &amp;lt;h4&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;Title 3&amp;lt;/a&amp;gt;&amp;lt;/h4&amp;gt;
        &amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute
          irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.&amp;lt;/p&amp;gt;
      &amp;lt;/article&amp;gt;


      &amp;lt;article class=&quot;white-panel&quot;&amp;gt; &amp;lt;img src=&quot;http://i.imgur.com/3gXW3L3.jpg&quot; alt=&quot;&quot;&amp;gt;
        &amp;lt;h4&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;Title 4&amp;lt;/a&amp;gt;&amp;lt;/h4&amp;gt;
        &amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute
          irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&amp;lt;/p&amp;gt;
      &amp;lt;/article&amp;gt;

      &amp;lt;article class=&quot;white-panel&quot;&amp;gt; &amp;lt;img src=&quot;http://i.imgur.com/o2RVMqm.jpg&quot; alt=&quot;&quot;&amp;gt;
        &amp;lt;h4&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;Title 5&amp;lt;/a&amp;gt;&amp;lt;/h4&amp;gt;
        &amp;lt;p&amp;gt;Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&amp;lt;/p&amp;gt;
      &amp;lt;/article&amp;gt;

      &amp;lt;article class=&quot;white-panel&quot;&amp;gt; &amp;lt;img src=&quot;http://i.imgur.com/kFFpuKA.jpg&quot; alt=&quot;&quot;&amp;gt;
        &amp;lt;h4&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;Title 6&amp;lt;/a&amp;gt;&amp;lt;/h4&amp;gt;
        &amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute
          irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.&amp;lt;/p&amp;gt;
      &amp;lt;/article&amp;gt;



      &amp;lt;article class=&quot;white-panel&quot;&amp;gt;&amp;lt;img src=&quot;http://i.imgur.com/E9RmLPA.jpg&quot; alt=&quot;&quot;&amp;gt;
        &amp;lt;h4&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;Title 7&amp;lt;/a&amp;gt;&amp;lt;/h4&amp;gt;
        &amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute
          irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&amp;lt;/p&amp;gt;
      &amp;lt;/article&amp;gt;

      &amp;lt;article class=&quot;white-panel&quot;&amp;gt; &amp;lt;img src=&quot;http://i.imgur.com/8lhFhc1.gif&quot; alt=&quot;&quot;&amp;gt;
        &amp;lt;h4&amp;gt;&amp;lt;a href=&quot;#&quot;&amp;gt;Title 8&amp;lt;/a&amp;gt;&amp;lt;/h4&amp;gt;
        &amp;lt;p&amp;gt;Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&amp;lt;/p&amp;gt;
      &amp;lt;/article&amp;gt;

    &amp;lt;/section&amp;gt;


    &amp;lt;hr&amp;gt;


  &amp;lt;/div&amp;gt;

&amp;lt;/div&amp;gt;&lt;/pre&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;Disini WriteCode menggunakan Bootstrap untuk bootstrapnya silakan anda download dilink resminya, Diatas adalah step step &lt;a href=&quot;http://lacodeid.blogspot.com/2018/02/grid-gallery-masonry-responsive-css.html&quot; rel=&quot;nofollow&quot;&gt;Membuat Grid Galeri Responsive&lt;/a&gt; silakan dipelajari dan dikembangkan, semoga bermanfaat.&lt;br /&gt;
&lt;br /&gt;
Baca juga : &lt;a href=&quot;http://lacodeid.blogspot.com/2018/02/css-grid-hover-responsive.html&quot; rel=&quot;nofollow&quot;&gt;CSS Grid Hover Responsive&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='https://lacodeid.blogspot.com/feeds/474554830007596651/comments/default' title='Posting Komentar'/><link rel='replies' type='text/html' href='https://lacodeid.blogspot.com/2018/02/3-langka-mudah-membuat-grid-pinterest.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/474554830007596651'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/474554830007596651'/><link rel='alternate' type='text/html' href='https://lacodeid.blogspot.com/2018/02/3-langka-mudah-membuat-grid-pinterest.html' title='3 Langka Mudah Membuat Grid Pinterest Responsive'/><author><name>Lacode</name><uri>http://www.blogger.com/profile/15545994188230698518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi81-ztlckKktU_W8OYmPGyNqzJdp9XrUdP4z9k-W-9QAhMvLzEBtofT20yY9ltvQN82F6KVxZLWLxIpg114-dfFfPygdIkzferbyF0UI6TchDNRopgiEzgoXsHkEPZ3OifSaQe9LsUL9A/s72-c/grid2.jpeg" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Jakarta, Indonesia</georss:featurename><georss:point>-6.17511 106.86503949999997</georss:point><georss:box>-6.17511 106.86503949999997 -6.17511 106.86503949999997</georss:box></entry><entry><id>tag:blogger.com,1999:blog-3630068095685918406.post-2176535526547691280</id><published>2018-02-13T22:36:00.000+07:00</published><updated>2018-02-20T21:12:50.956+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="css"/><title type='text'>Grid Gallery Masonry Responsive CSS </title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2TOsnRSHH7Icsczcu14FMUGHfxr1hIup86d2Qutn-k5YlwD-uFO8HuJOiwnNySjKF1OXLlVsAEPIzLJTylEjOYPoBbEor8fuxHOehI0lzUwZruenrT7CFSskkcxfGizUKccfbeWSue8w/s1600/grid.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Grid Gallery Masonry Responsive CSS &quot; border=&quot;0&quot; data-original-height=&quot;457&quot; data-original-width=&quot;1195&quot; height=&quot;244&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2TOsnRSHH7Icsczcu14FMUGHfxr1hIup86d2Qutn-k5YlwD-uFO8HuJOiwnNySjKF1OXLlVsAEPIzLJTylEjOYPoBbEor8fuxHOehI0lzUwZruenrT7CFSskkcxfGizUKccfbeWSue8w/s640/grid.jpg&quot; style=&quot;heght: auto; width: 100%;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Dikesempatan ini WriteCode tidak bosannya berbagi dan belajar untuk membuat tutorial yang sederhana ini, WriteCode akan menulis tutorial cara membuat Grid Gallery Masonry Responsive CSS, membuat galeri didalam sebuah website kadang kita kebingungan mencari tampilan galeri yang menarik dan sesuai dengan keinginan kita, nyari dimbah google kadang nemu kadang ngak eh ketemu disini ngumpet ya...slow. Langsung saja tanpa panjang dan lebar kita langsung menuju TKP jadi ingat OVJ hehehe....&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 1&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
Silakan anda copas css dibawah ini kedalam lembar kerja anda :&lt;br /&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt;#masonry {
  column-count: 2;
  column-gap: 1em;
}

@media(min-width: 30em) {
  #masonry {
    column-count: 3;
    column-gap: 1em;
  }
}

@media(min-width: 40em) {
  #masonry {
    column-count: 4;
    column-gap: 1em;
  }
}

@media(min-width: 60em) {
  #masonry {
    column-count: 5;
    column-gap: 1em;
  }
}

@media(min-width: 75em) {
  #masonry {
    column-count: 6;
    column-gap: 1em;
  }
}

.item {
  background-color: none;
  display: inline-block;
  margin: 0 0 1em 0;
  width: 100%;
  cursor: pointer;
}

.item img {
  max-width: 100%;
  height: auto;
  width: 100%;
  margin-bottom: -4px;
  
  /*idk why but this fix stuff*/
}

.item.active {
  animation-name: active-in;
  animation-duration: 0.7s;
  animation-fill-mode: forwards;
  animation-direction: alternate;
}

.item.active:before {
  content: &quot;+&quot;;
  transform: rotate(45deg);
  font-size: 48px;
  color: white;
  position: absolute;
  top: 20px;
  right: 20px;
  background-color:rgba(0,0,0,0.85);
  border-radius: 50%;
  width:48px;
  height:48px;
  text-align:center;
  line-height:48px;
  z-index:12;
}

.item.active img {
  animation-name: active-in-img;
  animation-duration: 0.7s;
  animation-fill-mode: forwards;
  animation-direction: alternate;
}


@keyframes active-in {
  0% {
    opacity:1;
    background-color:white;
  }
  
  50% {
    opacity:0;
    background-color:rgba(0,0,0,0.90);
  }
  
  100% {
    opacity: 1;
    position:fixed;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background-color:rgba(0,0,0,0.90);
  }
}

@keyframes active-in-img {
  0% {
    opacity:1;
    transform:translate(0%, 0%);
    top: 0;
    left: 0;
    max-width: 100%;
  }
  49% {
    opacity:0;
    transform: translate(0%, -50%);
  }
  50% {
    position:absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
  }
  100% {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  width: auto;
  max-height: 95vh;
  opacity:1;
  }
}&lt;/pre&gt;
&lt;b&gt;Step 2&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
Copas Lagi untuk javascriptnya dibawah ini :&lt;br /&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt;$(&#39;.item&#39;).click(function() {
  $(this).toggleClass(&#39;active&#39;);
});&lt;/pre&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;Step 3&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
Untuk script HTMLnya dibawah ini :&lt;br /&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt;&amp;lt;div class=&quot;container&quot;&amp;gt;
  &amp;lt;div class=&quot;row&quot;&amp;gt;
    &amp;lt;div class=&quot;col-md-12&quot;&amp;gt;
        &amp;lt;div class=&quot;well text-center&quot;&amp;gt;&amp;lt;h2&amp;gt;Full Responsive CSS Masonry Grid Gallery Or Blog&amp;lt;/h2&amp;gt;&amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
  &amp;lt;/div&amp;gt;
  &amp;lt;div class=&quot;container&quot;&amp;gt;
  &amp;lt;div id=&quot;masonry&quot;&amp;gt;
    &amp;lt;div class=&quot;item&quot;&amp;gt;
      &amp;lt;img src=&quot;http://placehold.it/1200x1200&quot; alt=&quot;&quot; /&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;div class=&quot;item&quot;&amp;gt;
      &amp;lt;img src=&quot;http://placehold.it/300x200&quot; alt=&quot;&quot; /&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;div class=&quot;item&quot;&amp;gt;
      &amp;lt;img src=&quot;http://placehold.it/300x300&quot; alt=&quot;&quot; /&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;div class=&quot;item&quot;&amp;gt;
      &amp;lt;img src=&quot;http://placehold.it/200x200&quot; alt=&quot;&quot; /&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;div class=&quot;item&quot;&amp;gt;
      &amp;lt;img src=&quot;http://placehold.it/300x250&quot; alt=&quot;&quot; /&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;div class=&quot;item&quot;&amp;gt;
      &amp;lt;img src=&quot;http://placehold.it/200x320&quot; alt=&quot;&quot; /&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;div class=&quot;item&quot;&amp;gt;
      &amp;lt;img src=&quot;http://placehold.it/300x200&quot; alt=&quot;&quot; /&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;div class=&quot;item&quot;&amp;gt;
      &amp;lt;img src=&quot;http://placehold.it/300x300&quot; alt=&quot;&quot; /&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;div class=&quot;item&quot;&amp;gt;
      &amp;lt;img src=&quot;http://placehold.it/200x200&quot; alt=&quot;&quot; /&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;div class=&quot;item&quot;&amp;gt;
      &amp;lt;img src=&quot;http://placehold.it/300x250&quot; alt=&quot;&quot; /&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;div class=&quot;item&quot;&amp;gt;
      &amp;lt;img src=&quot;http://placehold.it/200x320&quot; alt=&quot;&quot; /&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;div class=&quot;item&quot;&amp;gt;
      &amp;lt;img src=&quot;http://placehold.it/300x200&quot; alt=&quot;&quot; /&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;div class=&quot;item&quot;&amp;gt;
      &amp;lt;img src=&quot;http://placehold.it/300x300&quot; alt=&quot;&quot; /&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;div class=&quot;item&quot;&amp;gt;
      &amp;lt;img src=&quot;http://placehold.it/200x200&quot; alt=&quot;&quot; /&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;div class=&quot;item&quot;&amp;gt;
      &amp;lt;img src=&quot;http://placehold.it/300x250&quot; alt=&quot;&quot; /&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;div class=&quot;item&quot;&amp;gt;
      &amp;lt;img src=&quot;http://placehold.it/200x320&quot; alt=&quot;&quot; /&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;div class=&quot;item&quot;&amp;gt;
      &amp;lt;img src=&quot;http://placehold.it/300x200&quot; alt=&quot;&quot; /&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;div class=&quot;item&quot;&amp;gt;
      &amp;lt;img src=&quot;http://placehold.it/300x300&quot; alt=&quot;&quot; /&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;div class=&quot;item&quot;&amp;gt;
      &amp;lt;img src=&quot;http://placehold.it/200x200&quot; alt=&quot;&quot; /&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;div class=&quot;item&quot;&amp;gt;
      &amp;lt;img src=&quot;http://placehold.it/300x250&quot; alt=&quot;&quot; /&amp;gt;
    &amp;lt;/div&amp;gt;
  &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;&lt;/pre&gt;
&lt;div&gt;
Untuk Bootstrapnya silakan anda download di link resminya, &lt;a href=&quot;http://lacodeid.blogspot.com/2018/02/3-langka-mudah-membuat-grid-pinterest.html&quot; rel=&quot;nofollow&quot;&gt;3 langkah mudah membuat&amp;nbsp;Grid Gallery&lt;/a&gt; Masonry Responsive CSS, bila ada kekurangan didalam koding harap dimaklum silakan dikembangkan dan dipelajari, semoga bermanfaat untuk anda.&lt;/div&gt;
&lt;br /&gt;
Baca Juga :&lt;b&gt;&amp;nbsp;&lt;a href=&quot;http://lacodeid.blogspot.com/2018/02/css-image-galeri-responsive.html&quot; rel=&quot;nofollow&quot;&gt;CSS Image Galeri Responsive&lt;/a&gt;&lt;/b&gt;</content><link rel='replies' type='application/atom+xml' href='https://lacodeid.blogspot.com/feeds/2176535526547691280/comments/default' title='Posting Komentar'/><link rel='replies' type='text/html' href='https://lacodeid.blogspot.com/2018/02/grid-gallery-masonry-responsive-css.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/2176535526547691280'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/2176535526547691280'/><link rel='alternate' type='text/html' href='https://lacodeid.blogspot.com/2018/02/grid-gallery-masonry-responsive-css.html' title='Grid Gallery Masonry Responsive CSS '/><author><name>Lacode</name><uri>http://www.blogger.com/profile/15545994188230698518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2TOsnRSHH7Icsczcu14FMUGHfxr1hIup86d2Qutn-k5YlwD-uFO8HuJOiwnNySjKF1OXLlVsAEPIzLJTylEjOYPoBbEor8fuxHOehI0lzUwZruenrT7CFSskkcxfGizUKccfbeWSue8w/s72-c/grid.jpg" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Jakarta, Indonesia</georss:featurename><georss:point>-6.17511 106.86503949999997</georss:point><georss:box>-8.1968405 104.28325249999996 -4.1533795 109.44682649999997</georss:box></entry><entry><id>tag:blogger.com,1999:blog-3630068095685918406.post-5173985844910013137</id><published>2018-02-13T15:57:00.000+07:00</published><updated>2018-02-13T15:57:13.436+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AMP"/><title type='text'>Membuat Halaman AMP HTML Pertama</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_b2g6-_UiyCOzP1eRiVl_ZCCFJ2UI9Z6wtKrFGiV12x6JMTvAevrppuh4ylfAmIS0t6BY5fXJbo4jj9J_fVV-eD7ejAm1V5ej3ojE5HPSfoQHLfyL1G5PlpoQVRBub3DugGnFV6fERg8/s1600/logo-og-image.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Membuat Halaman AMP HTML Pertama&quot; border=&quot;0&quot; data-original-height=&quot;630&quot; data-original-width=&quot;1200&quot; height=&quot;168&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_b2g6-_UiyCOzP1eRiVl_ZCCFJ2UI9Z6wtKrFGiV12x6JMTvAevrppuh4ylfAmIS0t6BY5fXJbo4jj9J_fVV-eD7ejAm1V5ej3ojE5HPSfoQHLfyL1G5PlpoQVRBub3DugGnFV6fERg8/s320/logo-og-image.jpg&quot; style=&quot;heigth: auto; width: 100%;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;Tidak tahu cara memulainya? Dalam tutorial ini, Anda akan mempelajari cara membuat halaman AMP HTML, cara menggelarnya, dan memvalidasi bahwa halaman tersebut sesuai dengan AMP, dan terakhir cara menyiapkannya untuk dipublikasikan dan didistribusikan.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #333333; font-family: roboto, sans-serif;&quot;&gt;Sebelum Memulai membuat halaman AMP. Untuk titik awal bisa anda perhatikan script hmtl dibawah ini :&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt;&amp;lt;!doctype html&amp;gt;
&amp;lt;html amp lang=&quot;en&quot;&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;meta charset=&quot;utf-8&quot;&amp;gt;
    &amp;lt;title&amp;gt;Hello, AMPs&amp;lt;/title&amp;gt;
    &amp;lt;link rel=&quot;canonical&quot; href=&quot;http://example.ampproject.org/article-metadata.html&quot;&amp;gt;
    &amp;lt;meta name=&quot;viewport&quot; content=&quot;width=device-width,minimum-scale=1,initial-scale=1&quot;&amp;gt;
    &amp;lt;script type=&quot;application/ld+json&quot;&amp;gt;
      {
        &quot;@context&quot;: &quot;http://schema.org&quot;,
        &quot;@type&quot;: &quot;NewsArticle&quot;,
        &quot;headline&quot;: &quot;Open-source framework for publishing content&quot;,
        &quot;datePublished&quot;: &quot;2015-10-07T12:02:41Z&quot;,
        &quot;image&quot;: [
          &quot;logo.jpg&quot;
        ]
      }
    &amp;lt;/script&amp;gt;
    &amp;lt;style amp-boilerplate&amp;gt;body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}&amp;lt;/style&amp;gt;&amp;lt;noscript&amp;gt;&amp;lt;style amp-boilerplate&amp;gt;body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}&amp;lt;/style&amp;gt;&amp;lt;/noscript&amp;gt;
    &amp;lt;script async src=&quot;https://cdn.ampproject.org/v0.js&quot;&amp;gt;&amp;lt;/script&amp;gt;
  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt;
    &amp;lt;h1&amp;gt;Welcome to the mobile web&amp;lt;/h1&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/pre&gt;
&lt;span style=&quot;color: #333333; font-family: roboto, sans-serif;&quot;&gt;Untuk Membuat Halaman AMP jangan lupa untuk menambahkan script dibawah ini kedalam project AMP anda letakan didalam tag &lt;b&gt;&amp;lt;head&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt;&lt;span style=&quot;color: #47535b; font-family: monospace, monospace;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&amp;lt;script async src=&quot;https://cdn.ampproject.org/v0.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #47535b; font-family: monospace, monospace; font-size: 15px;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;div&gt;
Dan jangan lupa juga menambahkan Script CSS dibawah ini kedalam tag &lt;b&gt;&amp;lt;head&amp;gt; &lt;/b&gt;silakan copas css dibawah ini kedalam project anda&lt;/div&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt;&lt;span style=&quot;color: #47535b; font-family: monospace, monospace;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;&amp;lt;style amp-boilerplate&amp;gt;body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}&amp;lt;/style&amp;gt;

&amp;lt;noscript&amp;gt;&amp;lt;style amp-boilerplate&amp;gt;body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}&amp;lt;/style&amp;gt;&amp;lt;/noscript&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;color: #333333; font-family: roboto, sans-serif;&quot;&gt;Tambahkan juga &lt;b&gt;LD-JSON&lt;/b&gt; Kedalam Project AMP anda letakan kedalam tag &lt;b&gt;&amp;lt;head&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt;&amp;lt;script type=&quot;application/ld+json&quot;&amp;gt;
      {
        &quot;@context&quot;: &quot;http://schema.org&quot;,
        &quot;@type&quot;: &quot;NewsArticle&quot;,
        &quot;headline&quot;: &quot;Open-source framework for publishing content&quot;,
        &quot;datePublished&quot;: &quot;2015-10-07T12:02:41Z&quot;,
        &quot;image&quot;: [
          &quot;logo.jpg&quot;
        ]
      }
&amp;lt;/script&amp;gt;&lt;/pre&gt;
&lt;span style=&quot;color: #333333; font-family: roboto, sans-serif;&quot;&gt;Dan tambahkan juga meta dan link dibawah ini kedalam Tag &lt;b&gt;&amp;lt;head&amp;gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt;&amp;lt;link rel=&quot;canonical&quot; href=&quot;http://example.ampproject.org/project-amp-saya.html&quot;&amp;gt;
&amp;lt;meta name=&quot;viewport&quot; content=&quot;width=device-width,minimum-scale=1,initial-scale=1&quot;&amp;gt;&lt;/pre&gt;
&lt;span style=&quot;color: #333333; font-family: roboto, sans-serif;&quot;&gt;Untuk link jangan lupa menambahkan &lt;b style=&quot;font-style: italic;&quot;&gt;rel=&quot;canonical&quot;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: roboto, sans-serif;&quot;&gt;&lt;b style=&quot;font-style: italic;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;color: #333333; font-family: roboto, sans-serif;&quot;&gt;Untuk Membuat costum css dengan &lt;b&gt;&lt;i&gt;style&lt;/i&gt;&lt;/b&gt; jangan untuk menambahkan &lt;b&gt;&lt;i&gt;&amp;lt;style amp-costum&amp;gt;&lt;/i&gt;&lt;/b&gt; seperti dibawah ini :&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt;&amp;lt;style amp-custom&amp;gt;
  h1{
      color: red
  }
&amp;lt;/style&amp;gt;&lt;/pre&gt;
&lt;span style=&quot;color: #333333; font-family: roboto, sans-serif;&quot;&gt;Diatas adalah sedikit penjelasa cara&amp;nbsp;Membuat Halaman AMP HTML Pertama untuk tutorial lengkap bisa juga langsung menuju link dibawah ini :&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: roboto, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #333333; font-family: roboto, sans-serif;&quot;&gt;&lt;a href=&quot;https://www.ampproject.org/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;AMP PROJECT&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: roboto, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='https://lacodeid.blogspot.com/feeds/5173985844910013137/comments/default' title='Posting Komentar'/><link rel='replies' type='text/html' href='https://lacodeid.blogspot.com/2018/02/membuat-halaman-amp-html-pertama.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/5173985844910013137'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/5173985844910013137'/><link rel='alternate' type='text/html' href='https://lacodeid.blogspot.com/2018/02/membuat-halaman-amp-html-pertama.html' title='Membuat Halaman AMP HTML Pertama'/><author><name>Lacode</name><uri>http://www.blogger.com/profile/15545994188230698518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_b2g6-_UiyCOzP1eRiVl_ZCCFJ2UI9Z6wtKrFGiV12x6JMTvAevrppuh4ylfAmIS0t6BY5fXJbo4jj9J_fVV-eD7ejAm1V5ej3ojE5HPSfoQHLfyL1G5PlpoQVRBub3DugGnFV6fERg8/s72-c/logo-og-image.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3630068095685918406.post-6902941297338601851</id><published>2018-02-13T12:05:00.001+07:00</published><updated>2018-02-13T12:05:56.962+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="css"/><title type='text'>Cara Membuat Halaman Maintenance dengan CSS</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: start;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDlYRzjzt53eBRn9XIzx0LLbGC0jorD09l5CHQ3kdNvmzw9WYPZ62IMhAmD-UPSHgyURRPtvI4xiPF4ySGyrvgJXhFuAkmR4xNix3UHFsLfgrPb_5j6NMb8aVrNT166yKTBe2QfHU62zU/s1600/Untitled.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;564&quot; data-original-width=&quot;800&quot; height=&quot;450&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDlYRzjzt53eBRn9XIzx0LLbGC0jorD09l5CHQ3kdNvmzw9WYPZ62IMhAmD-UPSHgyURRPtvI4xiPF4ySGyrvgJXhFuAkmR4xNix3UHFsLfgrPb_5j6NMb8aVrNT166yKTBe2QfHU62zU/s640/Untitled.png&quot; style=&quot;height: auto; width: 100%;&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;Ditutorial kali ini &lt;b&gt;writecode&lt;/b&gt; mau berbagi tutorial &lt;b&gt;Cara Membuat Halaman Maintenance dengan CSS&lt;/b&gt; Langsung saja tanpa basa basi silakan copas koding dibawah ini :&lt;/div&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1.5em; margin-top: 24px; overflow: auto; padding: 4px 10px; vertical-align: baseline; word-wrap: normal;&quot;&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
    &amp;lt;head&amp;gt;
        &amp;lt;title&amp;gt;Site is down for maintenance&amp;lt;/title&amp;gt;
        &amp;lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot;&amp;gt;
        &amp;lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot; /&amp;gt;
        &amp;lt;style type=&quot;text/css&quot;&amp;gt;
            body { text-align: center; padding: 10%; font: 20px Helvetica, sans-serif; color: #333; }
            h1 { font-size: 50px; margin: 0; }
            article { display: block; text-align: left; max-width: 650px; margin: 0 auto; }
            a { color: #dc8100; text-decoration: none; }
            a:hover { color: #333; text-decoration: none; }
            @media only screen and (max-width : 480px) {
                h1 { font-size: 40px; }
            }
        &amp;lt;/style&amp;gt;
    &amp;lt;/head&amp;gt;
    &amp;lt;body&amp;gt;
        &amp;lt;article&amp;gt;
            &amp;lt;h1&amp;gt;Site is temporarily unavailable.&amp;lt;/h1&amp;gt;
            &amp;lt;p&amp;gt;Scheduled maintenance is currently in progress. Please check back soon.&amp;lt;/p&amp;gt;
            &amp;lt;p&amp;gt;We apologize for any inconvenience.&amp;lt;/p&amp;gt;
            &amp;lt;p id=&quot;signature&quot;&amp;gt;&amp;amp;mdash; &amp;lt;a href=&quot;mailto:[Email]&quot;&amp;gt;Website&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;
        &amp;lt;/article&amp;gt;
    &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/pre&gt;
Silakan dicopas koding diatas dan dimodifikasi sesuai dengan kebutuhan agan sekalian, sekian tutorial singkat ini semoga bermanfaat.</content><link rel='replies' type='application/atom+xml' href='https://lacodeid.blogspot.com/feeds/6902941297338601851/comments/default' title='Posting Komentar'/><link rel='replies' type='text/html' href='https://lacodeid.blogspot.com/2018/02/cara-membuat-halaman-maintenance-dengan.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/6902941297338601851'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/6902941297338601851'/><link rel='alternate' type='text/html' href='https://lacodeid.blogspot.com/2018/02/cara-membuat-halaman-maintenance-dengan.html' title='Cara Membuat Halaman Maintenance dengan CSS'/><author><name>Lacode</name><uri>http://www.blogger.com/profile/15545994188230698518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDlYRzjzt53eBRn9XIzx0LLbGC0jorD09l5CHQ3kdNvmzw9WYPZ62IMhAmD-UPSHgyURRPtvI4xiPF4ySGyrvgJXhFuAkmR4xNix3UHFsLfgrPb_5j6NMb8aVrNT166yKTBe2QfHU62zU/s72-c/Untitled.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Jakarta, Indonesia</georss:featurename><georss:point>-6.17511 106.86503949999997</georss:point><georss:box>-8.1968405 104.28325249999996 -4.1533795 109.44682649999997</georss:box></entry><entry><id>tag:blogger.com,1999:blog-3630068095685918406.post-2114593669306303759</id><published>2018-02-06T10:04:00.001+07:00</published><updated>2018-02-06T10:11:07.008+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="htaccess"/><title type='text'>Cara Menghilangkan Extension WWW di URL</title><content type='html'>Cara Menghilangkan Extension &lt;b&gt;&lt;i&gt;WWW &lt;/i&gt;&lt;/b&gt;di &lt;b&gt;&lt;i&gt;URL&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Tambah kode berikut pada file &lt;b&gt;.htaccess&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; margin-top: 24px; overflow: auto; padding: 4px 10px;&quot;&gt;RewriteEngine On

RewriteCond %{HTTP_HOST} ^www.example.com$ [NC]

RewriteRule ^(.*)$ http://example.com/$1 [R=301,L]&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
Untuk Menghilangkan Extension &lt;b&gt;.php&lt;/b&gt;&lt;br /&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; margin-top: 24px; overflow: auto; padding: 4px 10px;&quot;&gt;&amp;lt;IfModule mod_rewrite.c&amp;gt;
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php
&amp;lt;/IfModule&amp;gt;&lt;/pre&gt;
&lt;br /&gt;
Dibawah ini cara menghilangkan extension&lt;b&gt; .html&lt;/b&gt;&lt;br /&gt;
&lt;pre class=&quot;EnlighterJSRAW&quot; data-enlighter-language=&quot;no-highlight&quot; style=&quot;background-color: #f1f1f1; border-radius: 0px; border: none; box-sizing: border-box; color: #47535b; font-family: monospace, monospace; font-size: 15px; margin-top: 24px; overflow: auto; padding: 4px 10px;&quot;&gt;&amp;lt;IfModule mod_rewrite.c&amp;gt;
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.html-f
RewriteRule ^(.*)$ $1.html
&amp;lt;/IfModule&amp;gt;&lt;/pre&gt;
&lt;br /&gt;
Diatas adalah kode , silakan copas kedalam file .htaccess</content><link rel='replies' type='application/atom+xml' href='https://lacodeid.blogspot.com/feeds/2114593669306303759/comments/default' title='Posting Komentar'/><link rel='replies' type='text/html' href='https://lacodeid.blogspot.com/2018/02/cara-menghilangkan-extension-www-di-url.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/2114593669306303759'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/2114593669306303759'/><link rel='alternate' type='text/html' href='https://lacodeid.blogspot.com/2018/02/cara-menghilangkan-extension-www-di-url.html' title='Cara Menghilangkan Extension WWW di URL'/><author><name>Lacode</name><uri>http://www.blogger.com/profile/15545994188230698518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3630068095685918406.post-1343168693130760022</id><published>2018-02-05T16:30:00.002+07:00</published><updated>2018-02-05T16:35:09.452+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Bootstrap"/><category scheme="http://www.blogger.com/atom/ns#" term="css"/><title type='text'>Css Image Galeri Responsive </title><content type='html'>&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiL6ZefCX_5Ddxd0_RcJq_FIxDtqUC6slG5hR1Go1boa6VZ8e275NlBxURXKQvCTyRUbsq2kFLqOtenAtYiUB7kvcn_QaOaOVRT0Ki2ENrIfp47tkUPdrRF58R_G2KG8F2GkGy0LifFtoA/s1600/apa-itu-bootstrap.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Css Image Galeri Responsive&quot; border=&quot;0&quot; data-original-height=&quot;500&quot; data-original-width=&quot;765&quot; height=&quot;417&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiL6ZefCX_5Ddxd0_RcJq_FIxDtqUC6slG5hR1Go1boa6VZ8e275NlBxURXKQvCTyRUbsq2kFLqOtenAtYiUB7kvcn_QaOaOVRT0Ki2ENrIfp47tkUPdrRF58R_G2KG8F2GkGy0LifFtoA/s640/apa-itu-bootstrap.jpg&quot; style=&quot;width: 100%;&quot; title=&quot;Css Image Galeri Responsive&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Css Image Galeri Responsive&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
Selamat datang kembali anak kids zaman now, berjumpa kembali dengan si semut hitam manis, ditutorial kali ini saya akan memberikan tutorial untuk anda petualang tutorial gratis, CSS Image Galeri Responsive tanpa banyak basa basi bisa langsung saja kita menuju kekoding dibawah ini :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-family: &amp;quot;monaco&amp;quot; , &amp;quot;menlo&amp;quot; , &amp;quot;consolas&amp;quot; , &amp;quot;courier new&amp;quot; , monospace; font-size: 12px; white-space: pre-wrap;&quot;&gt;&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;style&amp;gt;
div.gallery {
    margin: 5px;
    border: 1px solid #ccc;
    float: left;
    width: 180px;
}

div.gallery:hover {
    border: 1px solid #777;
}

div.gallery img {
    width: 100%;
    height: auto;
}

div.desc {
    padding: 15px;
    text-align: center;
}
&amp;lt;/style&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;

&amp;lt;div class=&quot;gallery&quot;&amp;gt;
  &amp;lt;a href=&quot;https://draft.blogger.com/img_fjords.jpg&quot; target=&quot;_blank&quot;&amp;gt;
    &amp;lt;img alt=&quot;Trolltunga Norway&quot; height=&quot;200&quot; src=&quot;img_fjords.jpg&quot; width=&quot;300&quot; /&amp;gt;
  &amp;lt;/a&amp;gt;
  &amp;lt;div class=&quot;desc&quot;&amp;gt;
Add a description of the image here&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;div class=&quot;gallery&quot;&amp;gt;
  &amp;lt;a href=&quot;https://draft.blogger.com/img_forest.jpg&quot; target=&quot;_blank&quot;&amp;gt;
    &amp;lt;img alt=&quot;Forest&quot; height=&quot;400&quot; src=&quot;img_forest.jpg&quot; width=&quot;600&quot; /&amp;gt;
  &amp;lt;/a&amp;gt;
  &amp;lt;div class=&quot;desc&quot;&amp;gt;
Add a description of the image here&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;div class=&quot;gallery&quot;&amp;gt;
  &amp;lt;a href=&quot;https://draft.blogger.com/img_lights.jpg&quot; target=&quot;_blank&quot;&amp;gt;
    &amp;lt;img alt=&quot;Northern Lights&quot; height=&quot;400&quot; src=&quot;img_lights.jpg&quot; width=&quot;600&quot; /&amp;gt;
  &amp;lt;/a&amp;gt;
  &amp;lt;div class=&quot;desc&quot;&amp;gt;
Add a description of the image here&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;div class=&quot;gallery&quot;&amp;gt;
  &amp;lt;a href=&quot;https://draft.blogger.com/img_mountains.jpg&quot; target=&quot;_blank&quot;&amp;gt;
    &amp;lt;img alt=&quot;Mountains&quot; height=&quot;400&quot; src=&quot;img_mountains.jpg&quot; width=&quot;600&quot; /&amp;gt;
  &amp;lt;/a&amp;gt;
  &amp;lt;div class=&quot;desc&quot;&amp;gt;
Add a description of the image here&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-family: &amp;quot;monaco&amp;quot; , &amp;quot;menlo&amp;quot; , &amp;quot;consolas&amp;quot; , &amp;quot;courier new&amp;quot; , monospace; font-size: 12px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
diatas kode lengkapnya silakan dikopas kelembar kerja anda</content><link rel='replies' type='application/atom+xml' href='https://lacodeid.blogspot.com/feeds/1343168693130760022/comments/default' title='Posting Komentar'/><link rel='replies' type='text/html' href='https://lacodeid.blogspot.com/2018/02/css-image-galeri-responsive.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/1343168693130760022'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/1343168693130760022'/><link rel='alternate' type='text/html' href='https://lacodeid.blogspot.com/2018/02/css-image-galeri-responsive.html' title='Css Image Galeri Responsive '/><author><name>Lacode</name><uri>http://www.blogger.com/profile/15545994188230698518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiL6ZefCX_5Ddxd0_RcJq_FIxDtqUC6slG5hR1Go1boa6VZ8e275NlBxURXKQvCTyRUbsq2kFLqOtenAtYiUB7kvcn_QaOaOVRT0Ki2ENrIfp47tkUPdrRF58R_G2KG8F2GkGy0LifFtoA/s72-c/apa-itu-bootstrap.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3630068095685918406.post-1545578712130554321</id><published>2017-12-21T17:08:00.001+07:00</published><updated>2017-12-21T17:10:34.335+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="jQuery"/><title type='text'>Validasi cek form inputan text empty dengan jquery</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOoN6McM61kUzCJVZVEFLPzKcK51hs4ncNrxWKr29lQkwA84IfWTSIMFgVKA2nIzn0E_zszM-YdCCTiXf3ClgceWm9dSwO0uCPgk7x51s6BjkES09OG7wXTaSB6kczk8mgNKSiuBNE4Qw/s1600/lacodeid.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;900&quot; data-original-width=&quot;1600&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOoN6McM61kUzCJVZVEFLPzKcK51hs4ncNrxWKr29lQkwA84IfWTSIMFgVKA2nIzn0E_zszM-YdCCTiXf3ClgceWm9dSwO0uCPgk7x51s6BjkES09OG7wXTaSB6kczk8mgNKSiuBNE4Qw/s1600/lacodeid.png&quot; style=&quot;height: auto; width: 100%;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Validasi cek form inputan text empty dengan jquery cara ini mungkin sudah sering anda gunakan untuk mengecek inputan data yang kosong didalam form inputan tapi disini akan saya berikan contoh sederhanannya hanya dengan menggunakan Jquery tanpa basa basi silakan copy Jquery dibawah ini :&lt;br /&gt;
&lt;br /&gt;
Copy Jquery dibawah ini :&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;script src=&quot;https://cdn.jsdelivr.net/jquery.validation/1.15.0/jquery.validate.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script src=&quot;https://cdn.jsdelivr.net/jquery.validation/1.15.0/additional-methods.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Copy lagi script dibawah ini&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;script&amp;gt;
   $(document).ready(function () {
     $(&#39;#cekinputan&#39;).validate({
         rules: {
          _name: &quot;required&quot;,
             _noKtp: &quot;required&quot;,
             _tempat: &quot;required&quot;,
            
         },
         messages: {
          _name: &quot;Silakan isi nama lengkap &quot;,
          _noKtp: &quot;silakan input nomer KTP&quot;,
          _tempat: &quot;Silakan input tempat lahir sesuai edintitas&quot;,
      }
     });
   });
&amp;lt;/script&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Copy juga form dibawah ini&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;form method=&quot;POST&quot; id=&quot;cekinputan&quot;&amp;gt;
    &amp;lt;div class=&quot;form-group&quot;&amp;gt;
     &amp;lt;input type=&quot;text&quot; class=&quot;form-control areakontak&quot; name=&quot;_name&quot; id=&quot;_name&quot; placeholder=&quot;Nama Lengkap&quot; required&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;div class=&quot;form-group&quot;&amp;gt;
     &amp;lt;input type=&quot;text&quot; class=&quot;form-control areakontak&quot; name=&quot;_noKtp&quot; id=&quot;_noKtp&quot; placeholder=&quot;No Edintitas(KTP)&quot; required onkeypress=&quot;return hanyaAngka(event, false)&quot; maxlength=&quot;17&quot;&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;div class=&quot;form-group&quot;&amp;gt;
     &amp;lt;textarea name=&quot;_tempat&quot; id=&quot;_tempat&quot; placeholder=&quot;Tempat Lahir&quot; class=&quot;form-control areakontak&quot; maxlength=&quot;300&quot; required&amp;gt;&amp;lt;/textarea&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;div class=&quot;form-group&quot;&amp;gt;
 &amp;lt;center&amp;gt;
 &amp;lt;button type=&quot;submit&quot; class=&quot;btn btn-danger btn-grn&quot;&amp;gt;KIRIM 
  &amp;lt;i class=&quot;fa fa-arrow-right&quot; style=&quot;border-radius: 25px; border: 1px solid; padding: 6px;&quot;&amp;gt;&amp;lt;/i&amp;gt;
 &amp;lt;/button&amp;gt;
 &amp;lt;/center&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;/form&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
Silakan dipelajari dan kembangkan sendiri Validasi cek form inputan text empty dengan jquery bisa anda gunakan juga untuk semua form inputan dilembar kerja anda.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='https://lacodeid.blogspot.com/feeds/1545578712130554321/comments/default' title='Posting Komentar'/><link rel='replies' type='text/html' href='https://lacodeid.blogspot.com/2017/12/validasi-cek-form-inputan-text-empty.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/1545578712130554321'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/1545578712130554321'/><link rel='alternate' type='text/html' href='https://lacodeid.blogspot.com/2017/12/validasi-cek-form-inputan-text-empty.html' title='Validasi cek form inputan text empty dengan jquery'/><author><name>Lacode</name><uri>http://www.blogger.com/profile/15545994188230698518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOoN6McM61kUzCJVZVEFLPzKcK51hs4ncNrxWKr29lQkwA84IfWTSIMFgVKA2nIzn0E_zszM-YdCCTiXf3ClgceWm9dSwO0uCPgk7x51s6BjkES09OG7wXTaSB6kczk8mgNKSiuBNE4Qw/s72-c/lacodeid.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Jakarta, Indonesia</georss:featurename><georss:point>-6.17511 106.86503949999997</georss:point><georss:box>-8.1968405 104.28325249999996 -4.1533795 109.44682649999997</georss:box></entry><entry><id>tag:blogger.com,1999:blog-3630068095685918406.post-2526703325207770481</id><published>2017-11-11T00:54:00.000+07:00</published><updated>2017-11-11T00:55:41.388+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Wordpress"/><title type='text'>Install plugin seo di wordpress untuk peringkat website</title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgx2YDgYcltOX_P5yqhU6XrPFySvWI61Fbuev-QnJ_Si3vJtkpAqWx1ufEYFhYUNqh6Gc0ESY7ZoL0bf1Yi1SFbt_BDugx_fXZNz08IN6KpFk-XnDuhHNEZDVTqg_wswVCaRYabXMgmsRs/s1600/wordpress-wallpaper.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Install plugin seo di wordpress untuk peringkat website&quot; border=&quot;0&quot; data-original-height=&quot;630&quot; data-original-width=&quot;1200&quot; height=&quot;336&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgx2YDgYcltOX_P5yqhU6XrPFySvWI61Fbuev-QnJ_Si3vJtkpAqWx1ufEYFhYUNqh6Gc0ESY7ZoL0bf1Yi1SFbt_BDugx_fXZNz08IN6KpFk-XnDuhHNEZDVTqg_wswVCaRYabXMgmsRs/s640/wordpress-wallpaper.jpg&quot; style=&quot;height: auto; width: 100%;&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Dikesempatan ini saya akan membahas install plugin seo di wordpress untuk meningkatkan peringkat website anda di google, bing, yahoo, biasanya untuk pengguna wordpress baru akan kesulitan bagaimana cara memudahkan website anda mudah untuk ditemukan di mesin pencari seperti google, bing, yahoo dll,&amp;nbsp; &amp;nbsp;hanya dengan instal plugin dibawah ini sudah cukup untuk membuat seo
&lt;br /&gt;
&lt;h3&gt;
&lt;strong&gt;1. All in One SEO Pack&amp;nbsp;&amp;nbsp;&lt;/strong&gt;&lt;/h3&gt;
Plugin ini menyediakan google analytic, sitemap XML, robot.txt, meta title, meta keyword, meta description dan masih banyak lagi jadi jangan sungkan untuk menggunakan plugin yang satu ini.
&lt;br /&gt;
&lt;h3&gt;
&lt;strong&gt;2. Yoast SEO&lt;/strong&gt;&lt;/h3&gt;
Ini salah satu plugin yang paling banyak digunakan di wordpress karena plugin ini menyediakan fitur keyword, url, tag dll.
&lt;br /&gt;
&lt;h3&gt;
&lt;strong&gt;3. Google XML Sitemaps&amp;nbsp;&lt;/strong&gt;&lt;/h3&gt;
Google ML Sitemaps dapat digunakan untuk membuat sitemap XML, yaitu dapat membantu search engine seperti Google,Bing dan Yahoo lebih baik lagi dalam mengindex website Anda. Sitemap berguna untuk memudahkan perayap search engine ketika mengecek struktur website. Untuk Mendaftarkan sitemap.xml di Google webmasters silakan menuju &lt;a href=&quot;https://www.google.com/webmasters/&quot;&gt;link ini&lt;/a&gt;
&lt;br /&gt;
&lt;h3&gt;
&lt;strong&gt;4.&amp;nbsp;Broken Link Checker&lt;/strong&gt;&lt;/h3&gt;
Broken Link Checker&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;dapat melakukan pemantauan link yang ada di website anda, jika terdapat link yang rusak, maka Anda dapat mengetahuinya dengan segera. Seperti link yang ada pada postingan, halaman dan komentar.
&lt;br /&gt;
&lt;h3&gt;
&lt;strong&gt;5. Rel Nofollow Checkbox&lt;/strong&gt;&lt;/h3&gt;
Rel Nofollow Checkbox&amp;nbsp;berguna untuk menambahkan pilihan checkbox nofollow pada link yang ada di artikel Anda. Ini berguna untuk Anda yang tidak ingin memberikan backlink pada link yang dituju.

Ada banyak plugin yang bisa anda gunakan untuk meningkatkan peringkat website anda di mensin pencari, karena di cms wordpress begitu banyak plugin2 yang disediakan untuk anda meningkatkan rangking website, jadi tidak salah bila anda ingin membuat website dengan cms wordpress hanya dengan cms ini telah menyediakan apa yang anda butuhkan baik dari theme, plugin, widget dll semua bisa anda gunakan sesuai dengan kebutuhan website anda.</content><link rel='replies' type='application/atom+xml' href='https://lacodeid.blogspot.com/feeds/2526703325207770481/comments/default' title='Posting Komentar'/><link rel='replies' type='text/html' href='https://lacodeid.blogspot.com/2017/11/install-plugin-seo-di-wordpress-untuk.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/2526703325207770481'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/2526703325207770481'/><link rel='alternate' type='text/html' href='https://lacodeid.blogspot.com/2017/11/install-plugin-seo-di-wordpress-untuk.html' title='Install plugin seo di wordpress untuk peringkat website'/><author><name>Lacode</name><uri>http://www.blogger.com/profile/15545994188230698518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgx2YDgYcltOX_P5yqhU6XrPFySvWI61Fbuev-QnJ_Si3vJtkpAqWx1ufEYFhYUNqh6Gc0ESY7ZoL0bf1Yi1SFbt_BDugx_fXZNz08IN6KpFk-XnDuhHNEZDVTqg_wswVCaRYabXMgmsRs/s72-c/wordpress-wallpaper.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3630068095685918406.post-3831542354678450685</id><published>2017-11-07T22:59:00.000+07:00</published><updated>2017-11-07T22:59:30.817+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MAP"/><title type='text'>Cara mendapatkan key api google map</title><content type='html'>Untuk membuat key api google map silakan anda menuju &lt;a href=&quot;https://developers.google.com/maps/documentation/geocoding/get-api-key?hl=id&quot; target=&quot;_blank&quot;&gt;link ini&lt;/a&gt;&amp;nbsp;untuk tampilannya seperti dibawah ini :&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHQkl-ULnos0Di4MSk37oBpWwsByAcw7R2mJiATxxGc8mKhNTd-gA_eLIMj29pQnvg1G3h7UqwlmuEnByPoRwrq_FXg6v-aig77aRrYcVAnPyOcq-HKCFzy0CC-h1yKENi4pqF693fj3o/s1600/api-key-map.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;643&quot; data-original-width=&quot;1366&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHQkl-ULnos0Di4MSk37oBpWwsByAcw7R2mJiATxxGc8mKhNTd-gA_eLIMj29pQnvg1G3h7UqwlmuEnByPoRwrq_FXg6v-aig77aRrYcVAnPyOcq-HKCFzy0CC-h1yKENi4pqF693fj3o/s640/api-key-map.jpg&quot; style=&quot;width: 100%;&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Bila anda sudah masuk kehalam seperti diatas silakan login ke akun google sobat. Setelah login silakan klik tombol DAPATKAN KUNCI seperti didalam gambar diatas line warna merah lalu akan muncul popup layar seperti dibawah ini :&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwLnWpxuV7NXmPIHVTZ6pEi_fYAKYo7V2u8uXZ57StUlw32OtEFPgQSgv0u4CQg4Q-oAuDqRyEsKq8K3UXnipqWE7FdNxi6TvFB_TTgIaHV-4z0BQZ8cuJfu6etARsY3LzQHikYLcvAW0/s1600/popup-key.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;581&quot; data-original-width=&quot;1366&quot; height=&quot;272&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwLnWpxuV7NXmPIHVTZ6pEi_fYAKYo7V2u8uXZ57StUlw32OtEFPgQSgv0u4CQg4Q-oAuDqRyEsKq8K3UXnipqWE7FdNxi6TvFB_TTgIaHV-4z0BQZ8cuJfu6etARsY3LzQHikYLcvAW0/s640/popup-key.jpg&quot; style=&quot;width: 100%;&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Lalu Select &lt;b style=&quot;font-style: italic;&quot;&gt;Create a new project &lt;/b&gt;buat nama project key anda setelah itu akan muncul key api seperti dibawah ini :&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8Y14aC0ZBLarC4c-rEHeF8CfhVa45WTBh-aCdEyJQ1s3RPVOBdFGUlvdHM_2rcL8d_uFUSK6uVQ-SX2VLte-8h86WklPQJnLY1Jjee6sR3x-8lGcApvUC6MNVPGQvdiSjeiJ7rlZproc/s1600/key-api-map.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;613&quot; data-original-width=&quot;1366&quot; height=&quot;286&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8Y14aC0ZBLarC4c-rEHeF8CfhVa45WTBh-aCdEyJQ1s3RPVOBdFGUlvdHM_2rcL8d_uFUSK6uVQ-SX2VLte-8h86WklPQJnLY1Jjee6sR3x-8lGcApvUC6MNVPGQvdiSjeiJ7rlZproc/s640/key-api-map.jpg&quot; style=&quot;width: 100%;&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Diatas cara mendapatkan key api google map silakan dipraktekan semoga bermanfaat.</content><link rel='replies' type='application/atom+xml' href='https://lacodeid.blogspot.com/feeds/3831542354678450685/comments/default' title='Posting Komentar'/><link rel='replies' type='text/html' href='https://lacodeid.blogspot.com/2017/11/cara-mendapatkan-key-api-google-map.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/3831542354678450685'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/3831542354678450685'/><link rel='alternate' type='text/html' href='https://lacodeid.blogspot.com/2017/11/cara-mendapatkan-key-api-google-map.html' title='Cara mendapatkan key api google map'/><author><name>Lacode</name><uri>http://www.blogger.com/profile/15545994188230698518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHQkl-ULnos0Di4MSk37oBpWwsByAcw7R2mJiATxxGc8mKhNTd-gA_eLIMj29pQnvg1G3h7UqwlmuEnByPoRwrq_FXg6v-aig77aRrYcVAnPyOcq-HKCFzy0CC-h1yKENi4pqF693fj3o/s72-c/api-key-map.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3630068095685918406.post-2059730584216145066</id><published>2017-11-07T22:39:00.001+07:00</published><updated>2017-11-07T22:39:59.511+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="HTML"/><title type='text'>Menampilkan map kedalam html</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiW2dnz3OdV29cH40apHRKknXImMZdQZ4SgCrdhcD4W3i1PW___RBLyUlkIuOBVYGH7Yi6BLb4GFeA0OyRvz_iPoH3hmb_UR9eZPf4gdvejIvFVkoWOGKTtVWobqKt_Tg3DlnwxxUCG2c/s1600/menampilkan-map-dengan-html.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;500&quot; data-original-width=&quot;1366&quot; height=&quot;234&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiW2dnz3OdV29cH40apHRKknXImMZdQZ4SgCrdhcD4W3i1PW___RBLyUlkIuOBVYGH7Yi6BLb4GFeA0OyRvz_iPoH3hmb_UR9eZPf4gdvejIvFVkoWOGKTtVWobqKt_Tg3DlnwxxUCG2c/s640/menampilkan-map-dengan-html.jpg&quot; style=&quot;width: 100%;&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Menampilkan google map kedalam HTML sebenarnya bukan hal yang sulit dengan mengikuti tutorial ini saya yakin anda pasti bisa membuat google map sendiri, biasanya google digunakan untuk menentukan lokasi alamat kantor,perusahaan dan nama jalan dengan icon map marker berwarna merah. Untuk contoh sederhanya dibawah ini :&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Kode HTML&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;!DOCTYPE html &amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;meta name=&quot;viewport&quot; content=&quot;initial-scale=1.0, user-scalable=no&quot; /&amp;gt;
&amp;lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=UTF-8&quot;/&amp;gt;
&amp;lt;title&amp;gt;Google Maps&amp;lt;/title&amp;gt;
&amp;lt;style&amp;gt;#map {
height: 500px;
}
html, body {
height: 100%;
margin: 0;
padding: 0;
}&amp;lt;/style&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;div id=&quot;map&quot;&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;script&amp;gt;
var customLabel = {
restaurant: {
label: &#39;R&#39;
},
bar: {
label: &#39;B&#39;
}
};
function initMap() {
var map = new google.maps.Map(document.getElementById(&#39;map&#39;), {
center: new google.maps.LatLng(-33.863276, 151.207977),
zoom: 12
});
var infoWindow = new google.maps.InfoWindow;
downloadUrl(&#39;https://storage.googleapis.com/mapsdevsite/json/mapmarkers2.xml&#39;, function(data) {
var xml = data.responseXML;
var markers = xml.documentElement.getElementsByTagName(&#39;marker&#39;);
Array.prototype.forEach.call(markers, function(markerElem) {
var id = markerElem.getAttribute(&#39;id&#39;);
var name = markerElem.getAttribute(&#39;name&#39;);
var address = markerElem.getAttribute(&#39;address&#39;);
var type = markerElem.getAttribute(&#39;type&#39;);
var point = new google.maps.LatLng(
parseFloat(markerElem.getAttribute(&#39;lat&#39;)),
parseFloat(markerElem.getAttribute(&#39;lng&#39;)));
var infowincontent = document.createElement(&#39;div&#39;);
var strong = document.createElement(&#39;strong&#39;);
strong.textContent = name
infowincontent.appendChild(strong);
infowincontent.appendChild(document.createElement(&#39;br&#39;));
var text = document.createElement(&#39;text&#39;);
text.textContent = address
infowincontent.appendChild(text);
var icon = customLabel[type] || {};
var marker = new google.maps.Marker({
map: map,
position: point,
label: icon.label
});
marker.addListener(&#39;click&#39;, function() {
infoWindow.setContent(infowincontent);
infoWindow.open(map, marker);
});
});
});
}
function downloadUrl(url, callback) {
var request = window.ActiveXObject ?
new ActiveXObject(&#39;Microsoft.XMLHTTP&#39;) :
new XMLHttpRequest;
request.onreadystatechange = function() {
if (request.readyState == 4) {
request.onreadystatechange = doNothing;
callback(request, request.status);
}
};
request.open(&#39;GET&#39;, url, true);
request.send(null);
}
function doNothing() {}
&amp;lt;/script&amp;gt;
&amp;lt;script async defer
src=&quot;https://maps.googleapis.com/maps/api/js?key=&lt;strong&gt;KEY&lt;/strong&gt;&amp;amp;callback=initMap&quot;&amp;gt;
&amp;lt;/script&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Yang perlu di perhatikan ID map yang akan menampilkan map google ke dalam HTML ,&amp;nbsp;&lt;code&gt;&amp;lt;div id=&quot;map&quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;/code&gt;&amp;nbsp;google map di tampilkan disini.&lt;br /&gt;
&lt;br /&gt;
Untuk membuat KEY API map silakan menuju &lt;a href=&quot;https://developers.google.com/maps/documentation/geocoding/get-api-key?hl=id&quot;&gt;link ini&lt;/a&gt;&amp;nbsp;setelah KEY API dibuat copas keynya letakan didalam tag &lt;em&gt;&amp;lt;script&amp;gt;&lt;/em&gt; dibawah ini

&lt;code&gt;&amp;lt;script async defer
src=&quot;https://maps.googleapis.com/maps/api/js?key=&lt;strong&gt;KEY API(Letakan disini)&lt;/strong&gt;&amp;amp;callback=initMap&quot;&amp;gt;
&amp;lt;/script&amp;gt;&lt;/code&gt;&lt;br /&gt;
&amp;nbsp;Diatas adalah cara menampilkan google map kedalam HTML silakan dipelajari dan dikembangkan.</content><link rel='replies' type='application/atom+xml' href='https://lacodeid.blogspot.com/feeds/2059730584216145066/comments/default' title='Posting Komentar'/><link rel='replies' type='text/html' href='https://lacodeid.blogspot.com/2017/11/menampilkan-map-kedalam-html.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/2059730584216145066'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/2059730584216145066'/><link rel='alternate' type='text/html' href='https://lacodeid.blogspot.com/2017/11/menampilkan-map-kedalam-html.html' title='Menampilkan map kedalam html'/><author><name>Lacode</name><uri>http://www.blogger.com/profile/15545994188230698518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiW2dnz3OdV29cH40apHRKknXImMZdQZ4SgCrdhcD4W3i1PW___RBLyUlkIuOBVYGH7Yi6BLb4GFeA0OyRvz_iPoH3hmb_UR9eZPf4gdvejIvFVkoWOGKTtVWobqKt_Tg3DlnwxxUCG2c/s72-c/menampilkan-map-dengan-html.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3630068095685918406.post-8336837742555026832</id><published>2017-11-04T23:22:00.000+07:00</published><updated>2018-02-22T13:41:21.268+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CRUD"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>Cara membuat class crud php mysql </title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOoN6McM61kUzCJVZVEFLPzKcK51hs4ncNrxWKr29lQkwA84IfWTSIMFgVKA2nIzn0E_zszM-YdCCTiXf3ClgceWm9dSwO0uCPgk7x51s6BjkES09OG7wXTaSB6kczk8mgNKSiuBNE4Qw/s1600/lacodeid.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;900&quot; data-original-width=&quot;1600&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOoN6McM61kUzCJVZVEFLPzKcK51hs4ncNrxWKr29lQkwA84IfWTSIMFgVKA2nIzn0E_zszM-YdCCTiXf3ClgceWm9dSwO0uCPgk7x51s6BjkES09OG7wXTaSB6kczk8mgNKSiuBNE4Qw/s640/lacodeid.png&quot; style=&quot;heigth: auto; width: 100%;&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Ditutorial kali ini &lt;strong&gt;WriteCode&lt;/strong&gt; akan membahas cara membuat class crud dengn php mysql berbasis PDO(PHP Data Object), mengapa kita harus membuat atau memahami Data object karena data obejct lebih mudah digunakan serta penempatan koding yang lebih teratur dan rapi untuk documentasinya silakan baca &lt;a href=&quot;http://php.net/manual/en/class.pdo.php&quot;&gt;disini&lt;/a&gt;&amp;nbsp;. Berikut step-step membuat class crud.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;strong&gt;Step 1&amp;nbsp;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;Membuat class koneksi database mysql, koneksi database merupakan akar dari sebuah website dengan adanya database kita bisa melakukan penambahan data, edit,delete dll, maka sangat penting bagi anda pengembangan website tahu cara membuat class koneksi database yang baik.DIbawah ini contoh class koneksi database

&amp;nbsp;
&lt;br /&gt;
&lt;br /&gt;
Baca Juga :&amp;nbsp;&lt;a href=&quot;https://lacodeid.blogspot.co.id/2017/11/cara-membuat-class-crud-php-mysql.html&quot; rel=&quot;nofollow&quot;&gt;Cara membuat class crud php mysql&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;?php 
class database 
{
    private $dsn;
    public $default = array(
        &#39;datasource&#39; =&amp;gt; &#39;Database/Mysql&#39;,
        &#39;persistent&#39; =&amp;gt; false,
        &#39;host&#39; =&amp;gt; &#39;localhost&#39;,
        &#39;login&#39; =&amp;gt; &#39;root&#39;,
        &#39;password&#39; =&amp;gt; &#39;password&#39;,
        &#39;database&#39; =&amp;gt; &#39;database&#39;&lt;em&gt;//name database&lt;/em&gt;,
        &#39;prefix&#39; =&amp;gt; &#39;tbl_&#39;,
        &#39;encoding&#39; =&amp;gt; &#39;UTF8&#39;,
        &#39;port&#39; =&amp;gt; &#39;&#39;,
    );

    public function dbkoneksi() {
        static $instance;
        if ($instance === null) {
            $opt = array(
                PDO::ATTR_ERRMODE =&amp;gt; PDO::ERRMODE_EXCEPTION,
                PDO::ATTR_DEFAULT_FETCH_MODE =&amp;gt; PDO::FETCH_ASSOC,
                PDO::ATTR_EMULATE_PREPARES =&amp;gt; FALSE,
            );
            $dsn = &#39;mysql:host=&#39; .$this-&amp;gt;default[&#39;host&#39;] . &#39;;dbname=&#39; .$this-&amp;gt;default[&#39;database&#39;] . &#39;;charset=&#39; .$this-&amp;gt;default[&#39;encoding&#39;];
            $instance = new PDO($dsn, $this-&amp;gt;default[&#39;login&#39;], $this-&amp;gt;default[&#39;password&#39;], $opt);
        }
        return $instance;
    }
 
}&lt;/code&gt;&lt;/pre&gt;
diatas adalah contoh class koneksi database dengan name class &lt;strong&gt;&lt;em&gt;database&lt;/em&gt;&amp;nbsp;&lt;/strong&gt;dengan &lt;em&gt;&lt;strong&gt;function dbkoneksi&amp;nbsp;&lt;/strong&gt;&lt;/em&gt;dalam pembuatan class koneksi database ini hal yang harus di perhatikan adalah name class database itu sendiri dengan adanya nama didalam sebuah class memudahkan kita untuk memangil class itu sendiri.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Step 2&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;
Baca Juga :&amp;nbsp;&lt;a href=&quot;https://lacodeid.blogspot.co.id/2017/10/cara-membuat-shoping-cart-php-mysql.html&quot; rel=&quot;nofollow&quot;&gt;Cara membuat shoping cart php mysql&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Membuat class crud untuk anda yang seorang developer website atau pengembang website membuat crud mungkin sudah tidak asing lagi bagi kalian bagi pemula ini sangat diperhatikan bagai mana cara membuat sebuah crud yang baik dan benar. Dalam membuatse class crud ada beberapa hal yang harus anda perhatikan name class dan name function digunakan. Disini saya mengunakan name class &lt;em&gt;CRUD&lt;/em&gt; untuk nama class sendiri bebas terserah anda mau dikasih dengan nama apa saja yang penting mudah untuk di ingat contoh dibawah ini :

&amp;nbsp;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;?php 
class crud extends database {
 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
   &lt;em&gt;//ini class CRUD
&lt;/em&gt;
   private $db;
 
   function __construct()&amp;nbsp; { 
    $this-&amp;gt;db = $dbs;//variabel databasenya
   }

   public funtion insert(){
      //letakan code disini
   }

   public function update(){
       //letakan code disini
   }

   public function read(){
      //letakan code disini
   }

   public function delete(){
       //letakan code disini
   }

}&lt;/code&gt;&lt;/pre&gt;
diatas adalah contoh class crud yang telah kita buat dengan name class CRUD sedangkan function digunakan untuk apa ? tugas dari function dalam sebuah class bermacam kegunaan sesuai dengan kebutuhan anda sedangkan &lt;strong&gt;function&lt;/strong&gt; dalam bahasa pemograman adalah kode program yang dirancang untuk menyelesaikan sebuah tugas tertentu, dan merupakan bagian dari program utama. Disini saya hanya membuat beberapa function saja untuk functionnya saya akan jelaskan dibawah ini :

Sebelum saya menjelaskan maksud dari function-function dalam class diatas, disini saya akan mejelaskan bagaimana cara menggunakan atau memangil class yang telah dibuat, pengunaannya sangat mudah contoh anda memiliki halaman index.php nah didalam &lt;em&gt;index.php&lt;/em&gt; silakan di panggil nama file php-nya sebagai contoh dibawah ini
&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;?php 
  // Path constants// Path constants &amp;nbsp; 
  include_once &#39;database.php&#39;;//koneksi database&amp;nbsp; &amp;nbsp; 
  include_once &#39;crud.php&#39;;//crud

  $systemcrud = new crud();//name&amp;nbsp;class&lt;/code&gt;&lt;/pre&gt;
Letakan kode diatas kedalam file index.php untuk databasenya&amp;nbsp; disini saya menggunakan &lt;em&gt;extends (class turunan )&amp;nbsp;&lt;/em&gt;Sekali lagi dalam PDO ada yang disebut dengan penurunan class. Maksudnya kita bisa membuat suatu class baru dari class yang sudah ada, mekanisme ini disebut penurunan kelas. Pada php , untuk menurunkan kelas maka digunakan kata kunci extends. Contoh dibawah ini :
&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;class crud extends database {
//ini class turunan
}&lt;/code&gt;&lt;/pre&gt;
diatas adalah contoh class turunan disini class turunannya &lt;em&gt;database&lt;/em&gt; yang di dapat dalam class database diatas.sampai disini saya rasa anda sudah paham sekarang lanjut ke penjelasan funtion-function didalam class crud.&lt;br /&gt;
&amp;nbsp;F&lt;em&gt;unction __construct()&lt;/em&gt; dibawah ini biasanya digunakan untuk menghubungkan class crud dengan databasenya.&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;function __construct() {
  //letakan code disini
}&lt;/code&gt;&lt;/pre&gt;
F&lt;em&gt;unction insert(), &lt;/em&gt;function ini untuk menambahkan data ke dalam database cara penulisannya seperti dibawah ini
&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;public function insert() {
  //letakan code disini
}&lt;/code&gt;&lt;/pre&gt;
F&lt;em&gt;unction Update(), &lt;/em&gt;function ini untuk mengedit data didalam database cara penulisannya seperti dibawah ini
&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;public function update() {
  //letakan code disini
}&lt;/code&gt;&lt;/pre&gt;
F&lt;em&gt;unction Delete(), &lt;/em&gt;function ini untuk menhapus data didalam database cara penulisannya seperti dibawah ini
&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;public function delete() {
  //letakan code disini
}&lt;/code&gt;&lt;/pre&gt;
F&lt;em&gt;unction Read(), &lt;/em&gt;function ini untuk membaca atau menampilkan data didalam database cara penulisannya seperti dibawah ini
&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;public function read() {
  //letakan code disini
}&lt;/code&gt;&lt;/pre&gt;
Dari penjelasan singkat diatas saya rasa anda sudah mengerti cara membuat class crud dengan benar silakan dipelajari.&lt;br /&gt;
&lt;br /&gt;
Baca Juga :&amp;nbsp;&lt;a href=&quot;https://lacodeid.blogspot.co.id/2017/10/save-auto-inputan-dengan-javascript.html&quot; rel=&quot;nofollow&quot;&gt;Membuat fitur autosave dengan ajax jquery&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='https://lacodeid.blogspot.com/feeds/8336837742555026832/comments/default' title='Posting Komentar'/><link rel='replies' type='text/html' href='https://lacodeid.blogspot.com/2017/11/cara-membuat-class-crud-php-mysql.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/8336837742555026832'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/8336837742555026832'/><link rel='alternate' type='text/html' href='https://lacodeid.blogspot.com/2017/11/cara-membuat-class-crud-php-mysql.html' title='Cara membuat class crud php mysql '/><author><name>Lacode</name><uri>http://www.blogger.com/profile/15545994188230698518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOoN6McM61kUzCJVZVEFLPzKcK51hs4ncNrxWKr29lQkwA84IfWTSIMFgVKA2nIzn0E_zszM-YdCCTiXf3ClgceWm9dSwO0uCPgk7x51s6BjkES09OG7wXTaSB6kczk8mgNKSiuBNE4Qw/s72-c/lacodeid.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3630068095685918406.post-3633558688274510743</id><published>2017-11-04T23:13:00.000+07:00</published><updated>2017-11-04T23:26:33.310+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>Slug untuk seo friendly website</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOoN6McM61kUzCJVZVEFLPzKcK51hs4ncNrxWKr29lQkwA84IfWTSIMFgVKA2nIzn0E_zszM-YdCCTiXf3ClgceWm9dSwO0uCPgk7x51s6BjkES09OG7wXTaSB6kczk8mgNKSiuBNE4Qw/s1600/lacodeid.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Slug untuk seo friendly website&quot; border=&quot;0&quot; data-original-height=&quot;900&quot; data-original-width=&quot;1600&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOoN6McM61kUzCJVZVEFLPzKcK51hs4ncNrxWKr29lQkwA84IfWTSIMFgVKA2nIzn0E_zszM-YdCCTiXf3ClgceWm9dSwO0uCPgk7x51s6BjkES09OG7wXTaSB6kczk8mgNKSiuBNE4Qw/s640/lacodeid.png&quot; style=&quot;height: auto; width: 100%;&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;

&lt;br /&gt;
Membuat slug untuk website seo&amp;nbsp;friendly untuk meningkatkan skor pada website. Untuk membuat slug sebenarnya sangat mudah. Pada prinsipnya slug tersebut akan menggantikan ID &lt;em&gt;(http://www.website.com?id=441) &lt;/em&gt;karena bila website anda masih menggunakan ID untuk menampilkan data itu tidak baik dimesin pencari google dan juga tidak aman untuk website itu sendiri. Itu juga alasan kenapa kita harus menggunakan slug untuk (seo friendly). Jadi pertama kita perlu menambahkan kolom slug pada pada tabel content anda. Kemudian membuat fungsi slug yang akan meng convert judul berita menjadi slug (seo friendly). untuk script kodenya dibawah ini

&amp;nbsp;
&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;function create_slug($string){
 $replace = &#39;-&#39;; 
 $string = strtolower($string); 
 //replace / and . with white space 
 $string = preg_replace(&quot;/[\/\.]/&quot;, &quot; &quot;, $string); 
 $string = preg_replace(&quot;/[^a-z0-9_\s-]/&quot;, &quot;&quot;, $string); 
 //remove multiple dashes or whitespaces 
 $string = preg_replace(&quot;/[\s-]+/&quot;, &quot; &quot;, $string); 
 //convert whitespaces and underscore to $replace 
 $string = preg_replace(&quot;/[\s_]/&quot;, $replace, $string); 
 //limit the slug size 
 $string = substr($string, 0, 100); 
 //slug is generated 
 return $string; 
 }&lt;/code&gt;&lt;/pre&gt;
Untuk menggunakan &lt;em&gt;function crate_slug&lt;/em&gt; diatas seperti dibawah ini :
&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;create_slug(strtolower(trim($_POST[&#39;content&#39;]))
&lt;/code&gt;&lt;/pre&gt;
Untuk website yang telah menggunakan slug biasanya linknya akan tampka seperti ini&amp;nbsp;&amp;nbsp;&lt;em&gt;(http://website.com/membuat-slug/) &lt;/em&gt;silakan copas koding diatas dan diterapkan dilembar kerja anda semoga bermanfaata</content><link rel='replies' type='application/atom+xml' href='https://lacodeid.blogspot.com/feeds/3633558688274510743/comments/default' title='Posting Komentar'/><link rel='replies' type='text/html' href='https://lacodeid.blogspot.com/2017/11/slug-untuk-seofriendly-website.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/3633558688274510743'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/3630068095685918406/posts/default/3633558688274510743'/><link rel='alternate' type='text/html' href='https://lacodeid.blogspot.com/2017/11/slug-untuk-seofriendly-website.html' title='Slug untuk seo friendly website'/><author><name>Lacode</name><uri>http://www.blogger.com/profile/15545994188230698518</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOoN6McM61kUzCJVZVEFLPzKcK51hs4ncNrxWKr29lQkwA84IfWTSIMFgVKA2nIzn0E_zszM-YdCCTiXf3ClgceWm9dSwO0uCPgk7x51s6BjkES09OG7wXTaSB6kczk8mgNKSiuBNE4Qw/s72-c/lacodeid.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>