Last active
March 3, 2020 20:56
-
-
Save dwillis/d91bb793465fd4886d7cfcef7a4ae4a3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 h2 = document.createElement('h2'); | |
h2.className = "apple"; | |
h2.innerHTML = "<span class=\"party-swatch-apple\"><img style:\"max-width: 40px;border-radius:10px;\" src="+object.twitter_profile_image_url+"></span><strong>"+object.candidate+"</strong>"; | |
div.appendChild(h2); | |
var col = document.createElement('div'); | |
col.className = "col_apple"; | |
var figure1 = document.createElement('figure'); | |
figure1.className = "apple_news"; | |
var p_cash = document.createElement('p'); | |
var img = document.createElement('image'); | |
if (object.greater_cash == true) { | |
img.src = "up-arrow.svg"; | |
} else { | |
img.src = "down-arrow.svg"; | |
}; | |
if (object.cash_highest_for_filing_type == true) { | |
p_cash.innerHTML = object.cash_on_hand + " cash on hand" + "<br/> <div class='apple_guff'>the most ever</div>"; | |
} else { | |
p_cash.innerHTML = object.cash_on_hand + " cash on hand" + "<br/>"; | |
} | |
p_cash.appendChild(img); | |
figure1.appendChild(p_cash); | |
col.appendChild(figure1); | |
div.appendChild(col); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment