adding community conf search

This commit is contained in:
Amanda Rousseau
2017-12-11 10:57:42 -08:00
parent 1d59fe6faf
commit 34dfe785a8
3 changed files with 88 additions and 1 deletions

26
community/list.json Normal file
View File

@@ -0,0 +1,26 @@
[
{"name": "DEFCON",
"month":"July",
"location":"Las Vegas, Nevada",
"country": "USA",
"link": "https://www.defcon.org/"
},
{"name": "BSides SF",
"month":"April",
"location":"San Francisco, CA",
"country": "USA",
"link": "https://bsidessf.org/"
},
{"name": "WiCyS Conference",
"month":"March",
"location":"Chicago, IL",
"country": "USA",
"link": "https://www.wicys.net/"
},
{"name": "ShellCon",
"month":"October",
"location":"Los Angeles, CA",
"country": "USA",
"link": "https://shellcon.io/"
}
]

59
community/search.html Normal file
View File

@@ -0,0 +1,59 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<title>js-tutorials.com : live json search</title>
</head>
<body>
<div class="container" style="padding:50px 250px;">
<h1>Search Conferences</h1>
<h4>Name, Month, Location, or Country</h4>
<div id="header"></div>
<form role="form">
<div class="form-group">
<input type="input" class="form-control input-lg" id="txt-search" placeholder="Type your search character">
</div>
</form>
<div id="filter-records"></div>
<div id="footer"></div>
</div>
</body>
</html>
<script type="text/javascript">
$(document).ready(function(){
$.getJSON('https://securedorg.github.io/community/list.json', function(data) {
$('#txt-search').keyup(function(){
var searchField = $(this).val();
if(searchField === '') {
$('#filter-records').html('');
return;
}
var regex = new RegExp(searchField, "i");
var output = '<div class="row">';
var count = 1;
$.each(data, function(key, val){
if ((val.name.search(regex) != -1) || (val.location.search(regex) != -1) || (val.country.search(regex) != -1) || (val.month.search(regex) != -1)) {
output += '<div class="col-md-6 well">';
output += '<div class="col-md-7">';
output += '<h5>' + val.name + '</h5>';
output += '<p>('+val.month+') ' + val.location + ', ' + val.country + '</p>'
output += '<p><a href="' + val.link + '">Website</a>'
output += '</div>';
output += '</div>';
if(count%2 == 0){
output += '</div><div class="row">'
}
count++;
}
});
output += '</div>';
$('#filter-records').html(output);
});
});
});
</script>

View File

@@ -2,5 +2,7 @@
- ## [Reverse Engineering Malware 101](https://securedorg.github.io/RE101/) ##
- ## [Reverse Engineering Malware 102](https://securedorg.github.io/RE102/) ##
- ## [2017 Flare-On Challenge Walk Through](https://securedorg.github.io/flareon4/) ##
# About
# About #
- ## [Blogs, Slides, Whitepapers](https://securedorg.github.io/content/) ##
# Resources #
- ## [Community Conference Search](https://securedorg.github.io/community/search.html) ##