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
// assign to body tag such that if it's html written to DOM after page has been loaded, if not | |
// $('.buy-btn').on('click', function(){ | |
$('body').on('click', '.buy-btn', function(){ | |
if($("#package-1").is(':checked')){ | |
// get pacakge-sub-values and build data_val | |
data_val={{package_1:true, ....}} | |
}else if($("#package-2").is(':checked')) { |
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
<!-- Code goes here --> | |
require 'csv' | |
require 'sqlite3' | |
class CongressParser | |
$db = SQLite3::Database.new "congress_members.db" | |
attr_accessor :file, :congress_members | |
def initialize(file) | |
@file = file |