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 question = new Array(), | |
answer = new Array(); | |
/* | |
Push the questions and answers into their respective arrays | |
by checking if the 'i' index is odd or even as the matrix only has two fields. | |
*/ | |
$('#faq-container table.matrix tbody tr td').find('textarea').each(function(i) { | |
if (!(i % 2)) { | |
question.push($(this).val()); |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
'.source.js*': | |
'Module Exports': | |
'prefix': 'mx' | |
'body': ''' | |
module.exports = ${1}; | |
''' | |
'Export Default': | |
'prefix': 'ed' | |
'body': ''' |