decreasing the character count for the petoskey area front page blog output to conser...
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 4 Oct 2016 18:14:05 +0000 (14:14 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 4 Oct 2016 18:14:05 +0000 (14:14 -0400)
views/frontPage.php

index 71724a8..aaaaa94 100644 (file)
@@ -20,17 +20,15 @@ echo '<div class="hubspot-container">'
     
      var blog = jQuery('.hubspot-blog-content');
      var image_link = jQuery(".image-link");
-     var image = jQuery(".hubspot-featured-image");
      var blog_characters = blog.text().length;
      var title = jQuery(".hubspot-title");
 
-     image.css("margin-bottom", "20px").css("background-size", "contain").css("width", "500px").css("height","350px");
-     image_link.css("display", "block");
+     image_link.css("display", "block").css("margin-bottom","15px");
      blog.find('img').remove();
      title.find("h1").css("margin-bottom", "15px").css("font-size", "25px");
 
-     if(blog_characters > 400){
-         blog.text(blog.text().substring(0,400) + '...');
+     if(blog_characters > 195){
+         blog.text(blog.text().substring(0,195) + '...');
      }
 
 </script>
\ No newline at end of file