This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Family, | |
Please everyone take me off your lists of political emails. Most of them | |
are beyond common sense and incredibly insulting. I hate to have to ask | |
this of my family who I find smart and loving, but it's gone past the point | |
of just being able to simply delete or ignore. | |
Thank you. | |
Love you, | |
Jason Carpentier |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Family, | |
Please everyone take me off your lists of political emails. Most of them | |
are beyond common sense and incredibly insulting. I hate to have to ask | |
this of my family who I find smart and loving, but it's gone past the point | |
of just being able to simply delete or ignore. | |
Thank you. | |
Love you, | |
Jason Carpentier |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// just logging the output from underscore.js .each function, pulling in some json data. | |
var portfolio = '<% _.each(projects, function(iimage, iproject, ilink_to_more_copy, iimage_name, pproject_name, pproject_subtitle, pproject_desc, iimage_desc){ console.log("iimage:", iimage, "iproject", iproject, "ilink_to_more_copy", ilink_to_more_copy, "iimage_name",iimage_name, pproject_name, "pproject_subtitle:", pproject_subtitle, "pproject_desc", pproject_desc, "iimage_desc", iimage_desc); } ) %>'; | |
var template = _.template(portfolio, {projects : [{"iimage":"GHI_Mothers2.jpg","iproject":"5","ilink_to_more_copy":"","iimage_name":"","iimage_desc":"GHI Physicians are the types of professionals that can do anything and go anywhere they choose in life. The Mothers Campaign captures the emotion during those once-in-a-lifetime events when their children make them prouder than they ever could have ever imagined. In this campaign, those momentous occasions happen to correspond directly with the choice they make to become |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var portfolio = '<% _.each(projects, function(projects, index) { %><div id="<%= projects.iimage %>" class="anImage <%= (projects.index)== 1 ? "active visible" : "hidden" %> ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var projectsJSON = $.getJSON( 'jsondata.json', function() { | |
alert("success" + projectsJSON.responseText); //this returns the JSON, pretty sure it is well-formed | |
}); | |
var portfolio = '<% _.each(projectsJSON, function(projects,index) { %><div id="<%= projects.iimage %>" class="anImage <%= (index)== 0 ? "active visible" : "hidden" %>"><a class="lightbox" href="/images/lightboxed/<%= projects.iimage %>"> <img src="/images/<%= projects.iimage %>" width="844"></a><div class="explanatory_copy"><div class="project_name"><%= projects.pproject_name %></div><div class="project_subtitle"><%= projects.pproject_subtitle %></div><div class="description"><p><%= projects.pproject_desc %></p></div><div class="link_to_more"><a href="<%= projects.iproject %>" rel="address:/<%= projects.iproject %>"><%= projects.ilink_to_more_copy %></a></div><div class="description_more"><p><%= projects.iimagedesc %></p></div></div></div> <% }); %>'; | |
var templateOutput = _.template(portfolio, { projects : projectsJ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"iimage":"GHI_Mothers2.jpg","iproject":"5","ilink_to_more_copy":"","iimage_name":"","iimage_desc":"GHI Physicians are the types of professionals that can do anything and go anywhere they choose in life. The Mothers Campaign captures the emotion during those once-in-a-lifetime events when their children make them prouder than they ever could have ever imagined. In this campaign, those momentous occasions happen to correspond directly with the choice they make to become part of the GHI Health Insurance Network. In 2007, GHI merged with HIP to form EmblemHealth. \r\n","pproject_name":"Mothers Campaign","pproject_subtitle":"","pproject_webname":"ghi","pproject_desc":"GHI Physicians are the types of professionals that can do anything and go anywhere they choose in life. The Mothers Campaign captures the emotion during those once-in-a-lifetime events when their children make them prouder than they ever could have ever imagined. In this campaign, those momentous occasions happen to correspond directly with the cho |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
var width = 740; | |
console.log(width); | |
$.each($('.overview img'), function(i, img) { | |
width += $(img).width(); | |
console.log($('.overview img'), width); | |
}); | |
$('.overview').width(width); | |
console.log(width); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var render = function (data) { | |
var portfolio = '<% _.each(data, function(project,index) { %><div id="<%= project.iimage %>" class="anImage <%= (index)== 0 ? "active visible" : "hidden" %>"><a class="lightbox" href="/images/lightboxed/<%= project.iimage %>"> <img src="/images/<%= project.iimage %>" width="844"></a><div class="explanatory_copy"><div class="project_name"><%= project.pproject_name %></div><div class="project_subtitle"><%= project.pproject_subtitle %></div><div class="description"><p><%= project.pproject_desc %></p></div><div class="link_to_more"><a href="<%= project.iproject %>" rel="address:/<%= project.iproject %>"><%= project.ilink_to_more_copy %></a></div><div class="description_more"><p><%= project.iimagedesc %></p></div></div></div> <% }); %>'; | |
var p_id = 4; //this will be a changing value when the filter works | |
var selectedProject = _.filter(data, function(p_id){ return data.iproject === p_id } ); | |
console.log(p_id, data, 'selectedProject:', selectedProject); // returns p |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.view-front-page-blocks | |
table tbody tr td | |
padding: 0 20px 20px 0 | |
a | |
color: $darkgreen | |
.grid-item | |
.views-field-title | |
font-family: $sans | |
font-size: 18px | |
font-weight: bold |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
where the partial is called: | |
<ul class="user_avatars"> | |
<%= render :partial => 'users/user_avatar', collection: @users %> | |
<%= render @users %> | |
</ul> | |
_user_avatar.html.erb: | |
<li> |
OlderNewer