removed onclick attr from block div
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 22 Jan 2016 20:47:52 +0000 (15:47 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 22 Jan 2016 20:47:52 +0000 (15:47 -0500)
js/app.js
js/custom/pageSetup.js
parts/glm-blocks.php

index 676d2d6..b732fd8 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -181,8 +181,7 @@ $(document).ready(function () {
         }
     });
     
-    if($(window).width() <= 640){
-        alert("Aasdf");
+    if($(window).width() <= 1024){
         $("#block-1, #block-2, #block-3").click(function () {
             $(this).toggleClass('front-page-blocks');
         });
index b41c2bf..fba6109 100644 (file)
@@ -172,8 +172,7 @@ $(document).ready(function () {
         }
     });
     
-    if($(window).width() <= 640){
-        alert("Aasdf");
+    if($(window).width() <= 1024){
         $("#block-1, #block-2, #block-3").click(function () {
             $(this).toggleClass('front-page-blocks');
         });
index 1e5456c..4d62b9a 100644 (file)
@@ -9,7 +9,7 @@
            <?php $thumbnail = wp_get_attachment_image_src( $post_image_id, false); ?>
            
            <!--block div -->
-            <div id="block-<?php echo $count; ?>" class="small-12 columns blocks" style="background: url('<?php echo $thumbnail[0]; ?>') no-repeat ; background-size: 100% 100%;" onclick=""
+            <div id="block-<?php echo $count; ?>" class="small-12 columns blocks" style="background: url('<?php echo $thumbnail[0]; ?>') no-repeat ; background-size: 100% 100%;"> 
                 <?php if($block->url):?>
                 <a href="<?php echo $block->url;?>"<?php if($block->externalUrl){echo ' target="_blank"';}?>>
                     <?php endif;?>