Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Just shy with elapsed parse, REGEX doesnt deletes indicies 4 and 5 in…

… the parser, but works fine on a console function
  • Loading branch information...
commit e3939ad85b4f6a6fd6f180372636cc13f80ad4fc 1 parent 62d7f76
@specialorange authored
View
246 _css/semanticcss.css
@@ -0,0 +1,246 @@
+/* =============================================================================
+ HTML5 Boilerplate CSS: h5bp.com/css
+ ========================================================================== */
+
+aside{ display: block; }
+header { display: block; width: 100%; }
+
+.chromeframe { margin: 0.2em 0; background: #ccc; color: black; padding: 0.2em 0; }
+
+
+/* ===== Initializr Styles =====================================================
+ Author: Jonathan Verrecchia - verekia.com/initializr/responsive-template
+ ========================================================================== */
+
+/*body{ font:16px/26px Helvetica, Helvetica Neue, Arial; }*/
+
+.wrapper{
+ width:90%;
+/* margin:0 5%; */
+}
+
+/* ===================
+ ALL: Orange Theme
+ =================== */
+
+#header-container{ border-bottom: 20px solid #e44d26; }
+#footer-container{ border-top: 20px solid #e44d26; }
+#main aside { border-top: 20px solid #e44d26; background:#f16529;}
+#header-container,
+#footer-container,
+::-moz-selection { background: #f16529; color: #fff; text-shadow: none; }
+::selection { background: #f16529; color: #fff; text-shadow: none; }
+
+/* ===============
+ ALL: IE Fixes
+ =============== */
+.ie7 header h1 { padding-top:20px; }
+/
+/* ====================
+ WIDE: CSS3 Effects
+ ==================== */
+ #header-container,
+ #main aside{
+ -webkit-box-shadow:0 5px 10px #aaa;
+ -moz-box-shadow:0 5px 10px #aaa;
+ box-shadow:0 5px 10px #aaa;
+ }
+/* ============
+ WIDE: Menu
+ ============ */
+
+ header h1 {
+ float:left;
+ }
+ nav{
+ float:right;
+ width:38%;
+ }
+/* ============
+ WIDE: Main
+ ============ */
+
+ #main article{
+ float:left;
+ width:70%;
+ }
+ #main aside{
+ float:right;
+ width:25%;
+ }
+}
+@media only screen and (min-width: 1140px) {
+/* ===============
+ Maximal Width
+ =============== */
+
+ .wrapper{
+ width:90%; /* 1140px - 10% for margins */
+ margin:0 auto;
+ }
+}
+
+/*chris's crap*/
+.mydiv { }
+.mydiv p1 {
+ margin: 1px;
+ margin-left: 0px;
+}
+.generatedcontent {
+ width:100%;
+}
+aside h1 {
+ margin: 1px;
+ font-size: 14px;
+}
+aside p {
+ margin: 1px;
+ margin-left: 50px;
+ font-size: 8px;
+}
+aside h2 {
+ margin: 1px;
+ margin-left: 25px;
+ font-size: 12px;
+}
+aside h3 {
+ margin: 1px;
+ margin-left: 25px;
+ font-size: 10px;
+}
+aside ol {
+ margin: 1px;
+ font-size: 14px;
+}
+#main aside article {
+ float:left;
+ width:100%;
+}
+p {
+ margin: 1px;
+ margin-left: 50px;
+}
+h1 {
+ margin: 0;
+ font-size: 14px;
+}
+h2 {
+ margin: 0;
+ font-weight:normal;
+ margin-left: 15px;
+ font-size: 12px;
+}
+h3 {
+ margin: 0;
+ font-weight:normal;
+ margin-left: 30px;
+ font-size: 10px;
+}
+h4 {
+ margin: 0;
+ font-weight:normal;
+ margin-left: 45px;
+ font-size: 8px;
+}
+li {
+ font-size: 10px;
+}
+.button {
+ border-top: 1px solid #ffffff;
+ background: #ff4d00;
+ background: -webkit-gradient(linear, left top, left bottom, from(#ff4d00), to(#ff4d00));
+ background: -webkit-linear-gradient(top, #ff4d00, #ff4d00);
+ background: -moz-linear-gradient(top, #ff4d00, #ff4d00);
+ background: -ms-linear-gradient(top, #ff4d00, #ff4d00);
+ background: -o-linear-gradient(top, #ff4d00, #ff4d00);
+ padding: 2px 4px;
+ -webkit-border-radius: 4px;
+ -moz-border-radius: 4px;
+ border-radius: 4px;
+ -webkit-box-shadow: rgba(0,0,0,1) 0 1px 0;
+ -moz-box-shadow: rgba(0,0,0,1) 0 1px 0;
+ box-shadow: rgba(0,0,0,1) 0 1px 0;
+ text-shadow: rgba(0,0,0,.4) 0 1px 0;
+ color: #ffffff;
+ font-size: 12px;
+ font-family: Georgia, Serif;
+ text-decoration: none;
+ vertical-align: middle;
+ }
+.button:hover {
+ border-top-color: #275700;
+ background: #275700;
+ color: #ffffff;
+ }
+.button:active {
+ border-top-color: #0000ff;
+ background: #0000ff;
+ }
+.button-vert {
+ border-top: 1px solid #ffffff;
+ background: #ff4d00;
+ background: -webkit-gradient(linear, left top, left bottom, from(#ff4d00), to(#ff4d00));
+ background: -webkit-linear-gradient(top, #ff4d00, #ff4d00);
+ background: -moz-linear-gradient(top, #ff4d00, #ff4d00);
+ background: -ms-linear-gradient(top, #ff4d00, #ff4d00);
+ background: -o-linear-gradient(top, #ff4d00, #ff4d00);
+ padding: 2px 4px;
+ -webkit-border-radius: 4px;
+ -moz-border-radius: 4px;
+ border-radius: 4px;
+ -webkit-box-shadow: rgba(0,0,0,1) 0 1px 0;
+ -moz-box-shadow: rgba(0,0,0,1) 0 1px 0;
+ box-shadow: rgba(0,0,0,1) 0 1px 0;
+ text-shadow: rgba(0,0,0,.4) 0 1px 0;
+ color: #ffffff;
+ font-size: 8px;
+ font-family: georgia, serif;
+ text-decoration: none;
+ vertical-align: middle;
+ }
+.button-vert:hover {
+ border-top-color: #275700;
+ background: #275700;
+ color: #ffffff;
+
+ }
+.button-vert:active {
+ border-top-color: #0000ff;
+ background: #0000ff;
+ }
+.btn {
+ background-color: transparent;
+ border: 0;
+ padding: 0;
+ color: white;
+}
+aside .hover {
+ cursor: pointer;
+ font-color: blue;
+ font-weight: bold;
+}
+.technical td {
+ margin: 0;
+ font-weight:normal;
+ margin-left: 15px;
+ font-size: 12px;
+}
+.type {
+ visibility: hidden
+}
+@font-face {
+ font-family: 'Desyrel';
+ src: url('/Users/chrisfrisina/Documents/CP/Projects/ResumeBuilder/_css/desyrel.eot');
+ src: url('/Users/chrisfrisina/Documents/CP/Projects/ResumeBuilder/_css/desyrel.eot?#iefix') format('embedded-opentype'),
+ url('/Users/chrisfrisina/Documents/CP/Projects/ResumeBuilder/_css/desyrel.woff') format('woff'),
+ url('/Users/chrisfrisina/Documents/CP/Projects/ResumeBuilder/_css/desyrel.ttf') format('truetype'),
+ url('/Users/chrisfrisina/Documents/CP/Projects/ResumeBuilder/_css/desyrel.svg#Desyrel') format('svg');
+ font-weight: normal;
+ font-style: normal;
+
+}
+.namefont {
+ font-family: Desyrel;
+ font-size: 50px;
+}
+ No newline at end of file
View
4 _css/tableSortBlue.css → _css/tableSort.css
@@ -8,7 +8,7 @@ table.tablesorter {
text-align: left;
}
table.tablesorter thead tr th, table.tablesorter tfoot tr th {
- background-color: #e6EEEE;
+ background-color: #FFA984;
border: 1px solid #FFF;
font-size: 8pt;
padding: 4px;
@@ -35,5 +35,5 @@ table.tablesorter thead tr .headerSortDown {
background-image: url(desc.gif);
}
table.tablesorter thead tr .headerSortDown, table.tablesorter thead tr .headerSortUp {
-background-color: #8dbdd8;
+background-color: #e44d26;
}
View
2  _js/libs/pdfobject.js
@@ -0,0 +1,2 @@
+/* PDFObject, copyright (C) 2008 Philip Hutchison (pipwerks.com). Documentation and examples are at www.pdfobject.com. Version 1.2, April 2011. MIT style license */
+var PDFObject=function(y){if(!y||!y.url){return false;}var w="1.2",b=y.id||false,i=y.width||"100%",z=y.height||"100%",r=y.pdfOpenParams,a,x;var v=function(){var c=null;if(window.ActiveXObject){c=new ActiveXObject("AcroPDF.PDF");if(!c){c=new ActiveXObject("PDF.PdfCtrl");}if(c!==null){return true;}}return false;};var u=function(){var c,f=navigator.plugins,d=f.length,e=/Adobe Reader|Adobe PDF|Acrobat/gi;for(c=0;c<d;c++){if(e.test(f[c].name)){return true;}}return false;};var t=function(){var c=navigator.mimeTypes["application/pdf"];return(c&&c.enabledPlugin);};var s=function(){var c=null;if(u()||v()){c="Adobe";}else{if(t()){c="generic";}}return c;};var q=function(){var e=document.getElementsByTagName("html");if(!e){return false;}var c=e[0].style,d=document.body.style;c.height="100%";c.overflow="hidden";d.margin="0";d.padding="0";d.height="100%";d.overflow="hidden";};var p=function(d){var c="",e;if(!d){return c;}for(e in d){if(d.hasOwnProperty(e)){c+=e+"=";if(e==="search"){c+=encodeURI(d[e]);}else{c+=d[e];}c+="&";}}return c.slice(0,c.length-1);};var o=function(d){var c=null;switch(d){case"url":c=a;break;case"id":c=b;break;case"width":c=i;break;case"height":c=z;break;case"pdfOpenParams":c=r;break;case"pluginTypeFound":c=x;break;case"pdfobjectversion":c=w;break;}return c;};var n=function(d){if(!x){return false;}var c=null;if(d){c=(d.nodeType&&d.nodeType===1)?d:document.getElementById(d);if(!c){return false;}}else{c=document.body;q();i="100%";z="100%";}c.innerHTML='<object data="'+a+'" type="application/pdf" width="'+i+'" height="'+z+'"></object>';return c.getElementsByTagName("object")[0];};a=encodeURI(y.url)+"#"+p(r);x=s();this.get=function(c){return o(c);};this.embed=function(c){return n(c);};return this;};
View
15 pdftrial.html
@@ -0,0 +1,15 @@
+<html>
+ <head>
+ <title>PDFObject example</title>
+ <script type="text/javascript" src="pdfobject.js"></script>
+ <script type="text/javascript">
+ window.onload = function (){
+ var success = new PDFObject({ url: "sample.pdf" }).embed();
+ };
+ </script>
+ </head>
+ <body>
+ <p>It appears you don't have Adobe Reader or PDF support in this web
+ browser. <a href="sample.pdf">Click here to download the PDF</a></p>
+ </body>
+</html>
View
184 semantic.html
@@ -4,11 +4,12 @@
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Resume Builder</title>
<link rel="stylesheet" href="_css/semanticcss.css">
- <link rel="stylesheet" href="_css/tableSortBlue.css">
+ <link rel="stylesheet" href="_css/tableSort.css">
</head>
<body>
<script src="http://code.jquery.com/jquery.min.js"></script>
<script type="text/javascript" src="_js/libs/jquery.tablesorter.min.js"></script>
+ <script src="_js/libs/pdfobject.js" type="text/javascript"></script>
<div id="header-container">
<header class="wrapper clearfix">
<h1>Resume Builder</h1>
@@ -21,7 +22,8 @@
</nav>
</header>
</div>
- <h1>Resume Builder</h1>
+
+ <h1>Generated Content</h1>
<form>
<fieldset class="businessapproaches"><legend>Business Approach Sections</legend>
@@ -283,6 +285,39 @@
</section>
</section>
+ <section class="academic"><h1>Academic Experience</h1>
+
+ <section class="school"><h1>University of North Carolina at Charlotte</h1>
+
+ <section class="Degree"><h1>Gendered Communication with a focus on the Female Voice</h1>
+ <time class="start" datetime="2003-08">AUG 2003</time>
+ <time class="end" datetime="2007-12">Dec 2007</time>
+ <p>I pursued this specific track of Communication Studies to study the gender biased elements within human interactions.</p>
+ <ul>
+ <li>National South Eastern Women's Studies Association(SEWSA) invitational speaker on self researched topic surrounding gender neutral non-hegemonic communication - 2008</li>
+ <li>Habitat for Humanity Build Lead</li>
+ <li>Disaster Response Lead Coordinator
+ <ul>
+ <li>Katrina - 10+ visits within 3 years</li>
+ <li>Rita - 1 Visit</li>
+ </ul>
+ </li>
+ </ul>
+ </section>
+ </section>
+ <section class="school"><h1>Central Piedmont Community College</h1>
+
+ <section class="Degree"><h1>Post-Graduate programs</h1>
+ <time class="start" datetime=""></time>
+ <time class="end" datetime=""></time>
+ <p>I utilize one of the best community colleges in the US to further my education in interdisciplinary areas.</p>
+ <ul>
+ <li>Six Sigma Black Belt Certification - 2012</li>
+ </ul>
+ </section>
+ </section>
+ </section>
+
<section class="techtable"><h1>Technologies / Compliance / Certifications</h1>
<table cellspacing="0">
<colgroup>
@@ -562,44 +597,33 @@
</table>
</section>
- <section class="academic"><h1>Academic Experience</h1>
-
- <section class="school"><h1>University of North Carolina at Charlotte</h1>
-
- <section class="Degree"><h1>Gendered Communication with a focus on the Female Voice</h1>
- <time class="start" datetime="2003-08">AUG 2003</time>
- <time class="end" datetime="2007-12">Dec 2007</time>
- <p>I pursued this specific track of Communication Studies to study the gender biased elements within human interactions.</p>
- <ul>
- <li>National South Eastern Women's Studies Association(SEWSA) invitational speaker on self researched topic surrounding gender neutral non-hegemonic communication - 2008</li>
- <li>Habitat for Humanity Build Lead</li>
- <li>Disaster Response Lead Coordinator
- <ul>
- <li>Katrina - 10+ visits within 3 years</li>
- <li>Rita - 1 Visit</li>
- </ul>
- </li>
- </ul>
- </section>
- </section>
- <section class="school"><h1>Central Piedmont Community College</h1>
-
- <section class="Degree"><h1>Post-Graduate programs</h1>
- <time class="start" datetime=""></time>
- <time class="end" datetime=""></time>
- <p>I utilize one of the best community colleges in the US to further my education in interdisciplinary areas.</p>
- <ul>
- <li>Six Sigma Black Belt Certification - 2012</li>
- </ul>
- </section>
- </section>
- </section>
-
- <footer>What do you call an Alligator in a vest? An Investigator!</footer>
+ <footer>
+ <h1>What do you call an Alligator in a vest? An Investigator!</h1>
+ <h2>Hat tip to you all, in no particular order</h2>
+ <ul>
+ <li><a href="http://jsfiddle.net/">JSFIDDLE</a></li>
+ <li><a href="http://stackoverflow.com/">StackOverflow</a></li>
+ <li>Jan Goyvaert @ <a href="http://www.regular-expressions.info/">Regular-Expressions</a></li>
+ </ul>
+ </footer>
</body>
</html>
<script>
+
+var myPDF = new PDFObject({
+ url: "sample.pdf",
+ id: "myPDF",
+ width: "500px",
+ height: "300px",
+ pdfOpenParams: {
+ navpanes: 1,
+ statusbar: 0,
+ view: "FitH",
+ pagemode: "thumbs"
+ }
+}).embed("mydiv");
+
// Generation
$('section.businessapproaches section h1').each(function () {
var value = this.innerHTML;
@@ -890,7 +914,90 @@
}
});
})();
+ //Table Sorter dateSorter
+ $.tablesorter.addParser({
+ // set a unique id
+ id: 'dateSorter',
+ is: function(s) {
+ // return false so this parser is not auto detected
+ return false;
+ },
+ format: function(s) {
+ // format your data for normalization
+ // return s.toLowerCase().replace(/good/,2).replace(/medium/,1).replace(/bad/,0);
+ for (var i = 0 ; i < s.length ; i++) {
+ var parts = [];
+ var order = [];
+ parts.push(s.toLowerCase().replace(/january/,0).replace(/february/,1).replace(/march/,2).replace(/april/,3).replace(/may/,4).replace(/june/,5).replace(/july/,6).replace(/august/,7).replace(/september/,8).replace(/october/,9).replace(/november/,10).replace(/december/,11).split(/\s*,\s*/));
+ order.push(parseInt(parts[0][0])+(parseInt(parts[0][1])*12));
+ return order;
+ };
+ s = order;
+ return s;
+ },
+ // set type, either numeric or text
+ type: 'numeric'
+ });
+ //Table Sorter elapsedSorter
+ $.tablesorter.addParser({
+ // set a unique id
+ id: 'elapsedSorter',
+ is: function(s) {
+ // return false so this parser is not auto detected
+ return false;
+ },
+ format: function(s) {
+
+ // $('.techtable td:nth-child(6)').each(function(){
+ // // console.log($(this));
+ // var that = $(this).text();
+ // var myRegexp = /([\d]+) ([\w]+)(([\d]+) ([\w]+))/;
+ // var match = myRegexp.exec($(this).text());
+ // if (typeof match[3] == 'undefined') {match.length = 3;};
+ // console.log(match);
+ // });
+ var myRegexp = /([\d]+) ([\w]+)(?: ([\d]+) ([\w]+))?/;
+ var match = myRegexp.exec(s);
+ var order = [];
+ // console.log(match[]);
+ if (typeof match[3] == 'undefined') {match.length = 3;};
+ // 1 element case:
+ // month
+ if (match.length = 3) {
+ if (match[2][0] == "m") {
+ order.push(match[1]);
+ }
+ // year
+ if (match[2][0] == "y") {
+ order.push(match[1]*12);
+ }
+ // both elements
+ } else {
+ order.push(match[1]*12 + match[3]);
+ }
+ s = order;
+ return s;
+ },
+ // set type, either numeric or text
+ type: 'numeric'
+ });
+ //Table Sorter parsers Identification
+ $(".techtable table").tablesorter({
+ headers: {
+ 3: {
+ sorter:'dateSorter'
+ },
+ 4: {
+ sorter:'dateSorter'
+ }
+ ,
+ 5: {
+ sorter:'elapsedSorter'
+ }
+ }
+ });
+ $(".techtable table").addClass("tablesorter");
//Academic
//individual SS elements toggle buttons
$('fieldset.academic input').on('change', function () {
@@ -907,8 +1014,5 @@
$(this).nextAll('input').removeAttr('disabled');
}
});
- $(document).ready(function() {
- $(".techtable table").tablesorter();
- $(".techtable table").addClass("tablesorter");
- });
+
</script>
Please sign in to comment.
Something went wrong with that request. Please try again.