1if (typeof extraQuestions !== 'undefined') { 2 console.log('sandybox'); 3 4 $('#section').on('change', function() { 5 var sectionPicked = $('#section').children(':selected').text(); 6 sectionPicked = sectionPicked.substring( 9, sectionPicked.indexOf(' -') - 1); 7 var questions = _.filter(extraQuestions, function(question){ return question.section == sectionPicked; }); 8 $("#extrainformation").html(''); 9 for (var i = 0, len = questions.length; i < len; i++) { 10 $("#extrainformation").append('<div class="col-md-6"><label for="default">'+questions[i].Q+'</label><input name="ExtraInformation['+(i+1)+']" label="'+questions[i].Q+'" type="text" class="form-control field-r btn-font" placeholder="" data-parsley-group="block3"> </div>'); 11 } 12 }); 13} 14 15function unixtodate(unixdate) 16 { 17var unixTimeStamp = 983112343; 18var timestampInMilliSeconds = unixTimeStamp*1000; 19var date = new Date(timestampInMilliSeconds); 20 21var day = (date.getDate() < 10 ? '0' : '') + date.getDate(); 22var month = (date.getMonth() < 9 ? '0' : '') + (date.getMonth() + 1); 23var year = date.getFullYear(); 24 25var hours = ((date.getHours() % 12 || 12) < 10 ? '0' : '') + (date.getHours() % 12 || 12); 26var minutes = (date.getMinutes() < 10 ? '0' : '') + date.getMinutes(); 27var meridiem = (date.getHours() >= 12) ? 'pm' : 'am'; 28 29var formattedDate = day + '-' + month + '-' + year; 30 31console.log(formattedDate); 32return formattedDate; 33 } 34 35function getTimeStamp(input) { 36 var parts = input.trim().split(' '); 37 var date = parts[0].split('-'); 38 var time = (parts[1] ? parts[1] : '00:00:00').split(':'); 39 40 // NOTE:: Month: 0 = January - 11 = December. 41 var d = new Date(date[0],date[1]-1,date[2],time[0],time[1],time[2]); 42 return d.getTime() / 1000; 43} 44 45 46
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.