Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding gdidayton programming concepts #30

Open
wants to merge 3 commits into
base: gh-pages
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 18 additions & 15 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="utf-8"/>
<title>Girl Develop It - Teaching Materials</title>
<link href="https://cdn.datatables.net/1.10.12/css/jquery.dataTables.min.css" rel="stylesheet" />
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
<style>
.status-filter label {
Expand All @@ -28,7 +29,7 @@
}

.links a:last-child:after {
content: "";
content: "";
}

.reset-btn {
Expand All @@ -44,10 +45,10 @@

<div class="container">
<h1 class="page-header">Girl Develop It - Teaching materials</h1>

<form class="form-inline" style="text-align: left;">


<fieldset class="status-filter">
Status:
<label class="bg-warning"><input type="checkbox" value="unreviewed" checked>Unreviewed</input></label>
Expand All @@ -59,9 +60,9 @@ <h1 class="page-header">Girl Develop It - Teaching materials</h1>
<button type="button" class="reset-btn btn btn-default btn-sm">Reset filters</button>
<fieldset class="tag-filter">
</fieldset>

</form>

<table class="materials-table table table-bordered">
<thead>
<tr>
Expand All @@ -73,7 +74,7 @@ <h1 class="page-header">Girl Develop It - Teaching materials</h1>
</thead>
<tbody></tbody>
</table>


<p>
Want to submit your chapter's materials for review here?
Expand All @@ -86,9 +87,10 @@ <h1 class="page-header">Girl Develop It - Teaching materials</h1>
</div>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="https://cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js"></script>
<script src="materials.js"></script>;
<script>

function renderAll(materials) {
var tags = [];

Expand All @@ -113,7 +115,7 @@ <h1 class="page-header">Girl Develop It - Teaching materials</h1>
makeTag(tag);
});
}

var getTag = function() {
return $('.tag-filter input:checked').val();
};
Expand All @@ -133,7 +135,7 @@ <h1 class="page-header">Girl Develop It - Teaching materials</h1>
var sequence = options.sequence || null;
var statuses = options.statuses || getStatuses() || null;

var $materialsTable = $('.materials-table tbody');
const $materialsTable = $('.materials-table tbody');
$materialsTable.empty();
$.each(materials, function(i, material) {

Expand All @@ -153,13 +155,13 @@ <h1 class="page-header">Girl Develop It - Teaching materials</h1>
.appendTo($row);

var statusMap = {
'unreviewed':
'unreviewed':
{'text': 'Not reviewed.', 'class': 'bg-warning'},
'doesntmeet':
'doesntmeet':
{'text': 'Does not meet requirements.', 'class': 'bg-danger'},
'meetsreq':
'meetsreq':
{'text': 'Meets requirements.', 'class': 'bg-info'},
'meetsrec':
'meetsrec':
{'text': 'Meets requirements and recommendations.', 'class': 'bg-success'},

}
Expand Down Expand Up @@ -198,7 +200,7 @@ <h1 class="page-header">Girl Develop It - Teaching materials</h1>
renderMaterials(materials, {sequence: material.sequence});
});
}

$('<span>Part of ' + material.sequence + 'sequence</span>')
$('<td>')
.append(material.covers)
Expand All @@ -212,7 +214,7 @@ <h1 class="page-header">Girl Develop It - Teaching materials</h1>
.appendTo($row);

$('<td>')

//.appendTo($row);
$materialsTable.append($row);
});
Expand Down Expand Up @@ -242,6 +244,7 @@ <h1 class="page-header">Girl Develop It - Teaching materials</h1>
}

renderAll(materials);
$('.materials-table tbody').DataTable();
</script>
</body>
</html>
13 changes: 13 additions & 0 deletions materials.js
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,19 @@ var materials = [
sequence: "GDIBoston",
status: "unreviewed"
},
{
title: "Introduction to Programming Concepts",
studentL: "https://gdidayton.github.io/into-to-p…",
teacherL: "https://github.com/gdidayton/into-to-programming-concepts",
editL: "https://github.com/gdidayton/into-to-programming-concepts",
duration: 3,
covers: "CS History, Variables, methods, datatypes, loops, conditionals, control flow, O-O intro, writing classes. Focus on core CS concepts.",
prereqs: "None",
tags: ["intro",],
reviewL: "",
sequence: "GDIDayton",
status: "unreviewed"
},
{
title: "Introduction to Programming with Ruby",
studentL: "http://kcjonesevans.github.io/gdidayton-intro-ruby/#/",
Expand Down