Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

google analytics added

  • Loading branch information...
commit 06af20287181c3bb82fe1ee0da917ac0cbde0c71 1 parent f1ff3bc
specialorange authored
6 _css/semanticcss.css
@@ -165,14 +165,14 @@ header h1 { color:white; }
165 165 }
166 166 body {
167 167 margin: 0;
168   - font-size: 10px;
  168 + font-size: 10px !important;
169 169 line-height: 1.4;
170 170 }
171 171 .gc .element {
172   - font-size: 11px;
  172 + font-size: 14px !important;
173 173 }
174 174 .gc .heading {
175   - font-size: 14px;
  175 + font-size: 18px !important;
176 176 }
177 177 }
178 178
25 exclude.html
... ... @@ -0,0 +1,25 @@
  1 +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
  2 + "http://www.w3.org/TR/html4/strict.dtd">
  3 +
  4 +<html lang="en">
  5 +<head>
  6 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  7 + <title>Exclude from Google Analytics</title>
  8 +</head>
  9 +<body>
  10 + <script type="text/javascript">
  11 +
  12 + var _gaq = _gaq || [];
  13 + _gaq.push(['_setAccount', 'UA-XXXXXXX-X']);
  14 + _gaq.push(['_setVar','test_value']);
  15 + _gaq.push(['_trackPageview']);
  16 +
  17 + (function() {
  18 + var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  19 + ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  20 + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  21 + })();
  22 +
  23 + </script>
  24 +</body>
  25 +</html>
30 index.html
@@ -121,7 +121,7 @@
121 121 </fieldset>
122 122
123 123 <fieldset id="fs_section_oldresumes" class="fs section oldresumes">
124   - <label id="fs_oldresumes_heading" class="fs btn heading oldresumes">Old Resumes</label><br>
  124 + <label id="fs_oldresumes_heading" class="fs btn heading oldresumes white">Old Resumes</label><br>
125 125 </fieldset>
126 126
127 127 <fieldset id="fs_section_visibility" class="fs section visibility">
@@ -790,7 +790,7 @@
790 790 </section>
791 791 </section>
792 792
793   - <section id="gc_section_oldresumes" class="gc section oldresumes "><h1>Old Resumes</h1>
  793 + <section id="gc_section_oldresumes" class="gc section oldresumes hidden"><h1>Old Resumes</h1>
794 794
795 795 <!-- <div>
796 796 <object data="_img/java.pdf" type="application/pdf" width="775" height="1000">
@@ -1019,10 +1019,8 @@
1019 1019 if ($(this).hasClass("gc")) {
1020 1020 //heading
1021 1021 if ($(this).hasClass("heading")) {
1022   - // $('#trackClick').click(function () {
1023   - //track number of times element is clicked
1024   - _gaq.push(['_trackEvent', 'Action', 'Label', 'Value']);
1025   - // });​
  1022 + //track btn clicks
  1023 + _gaq.push(['_trackEvent', 'GC Heading', 'ID: ' + $(this).attr('id')]);
1026 1024 //left
1027 1025 ($(this).parent().parent().toggleClass('hidden'));
1028 1026 //right
@@ -1042,6 +1040,8 @@
1042 1040 var hidden = ($(this).parent().parent().children().filter(':hidden').size()+1);
1043 1041 //if all elelemts are hidden, hide the parent too
1044 1042 if (hidden >= count) {
  1043 + //track btn clicks
  1044 + _gaq.push(['_trackEvent', 'GC Element(all)', 'ID: ' + $(this).attr('id')]);
1045 1045 //left
1046 1046 ($(this).parent().toggleClass('hidden'));
1047 1047 ($(this).parent().parent().toggleClass('hidden'));
@@ -1057,6 +1057,8 @@
1057 1057 ($("'" + newClasses + "'").parent().parent().children().eq(0)).toggleClass('white');
1058 1058 //hide one element only
1059 1059 } else {
  1060 + //track btn clicks
  1061 + _gaq.push(['_trackEvent', 'GC Element(1)', 'ID: ' + $(this).attr('id')]);
1060 1062 //left
1061 1063 ($(this).parent().toggleClass('hidden'));
1062 1064 //right
@@ -1093,9 +1095,13 @@
1093 1095 //unhide any element's sections that were hidden
1094 1096 //if all elements were hidden
1095 1097 if(hidden >= count) {
  1098 + //track btn clicks
  1099 + _gaq.push(['_trackEvent', 'FS Heading(allElementsHidden)', 'ID: ' + $(this).attr('id')]);
1096 1100 ($(this).siblings().children().toggleClass('hidden'));
1097 1101 ($(this).siblings().toggleClass('hidden'));
1098 1102 } else {
  1103 + //track btn clicks
  1104 + _gaq.push(['_trackEvent', 'FS Heading', 'ID: ' + $(this).attr('id')]);
1099 1105 ($(this).siblings().each(function() {
1100 1106 if (!$(this).children().hasClass('hidden')) {
1101 1107 $(this).toggleClass('hidden');
@@ -1113,17 +1119,23 @@
1113 1119 };
1114 1120 classes[0] = "gc";
1115 1121 var newClasses = '.' + classes.join().replace(/\,/g,'.');
  1122 + //track btn clicks
  1123 + _gaq.push(['_trackEvent', 'FS Element', 'ID: ' + $(this).attr('id')]);
1116 1124 //left
1117 1125 ($("'" + newClasses + "'").parent().toggleClass('hidden'));
1118 1126 //right
1119 1127 ($(this).toggleClass('hidden', (!$(this).hasClass('hidden'))));
1120 1128 //information section
1121   - } else if ($(this).hasClass("i")) {
  1129 + } else if ($(this).hasClass("i")) {
  1130 + //track btn clicks
  1131 + _gaq.push(['_trackEvent', 'FS Information', 'ID: ' + $(this).attr('id')]);
1122 1132 $(this).parent().parent().parent().parent().parent().toggleClass('hidden');
1123 1133 //Hide all show all
1124 1134 } else if ($(this).hasClass("visibility")) {
1125 1135 //Hide
1126 1136 if ($(this).hasClass("off")) {
  1137 + //track btn clicks
  1138 + _gaq.push(['_trackEvent', 'FS All', 'ID: ' + $(this).attr('id')]);
1127 1139 //headers
1128 1140 $(this).parent().prevAll().each(function() {
1129 1141 if (!$(this).children(':first-child').hasClass('white')) {
@@ -1133,6 +1145,8 @@
1133 1145 $('.jokes').toggleClass('hidden');
1134 1146 //Show
1135 1147 } else if ($(this).hasClass("on")) {
  1148 + //track btn clicks
  1149 + _gaq.push(['_trackEvent', 'FS All', 'ID: ' + $(this).attr('id')]);
1136 1150 //headers
1137 1151 $(this).parent().prevAll().each(function() {
1138 1152 if ($(this).children(':first-child').hasClass('white')) {
@@ -1154,6 +1168,8 @@
1154 1168 } else {
1155 1169 }
1156 1170 if ($('.fs.section').length-1 === $('.fs.white').length) {
  1171 + //track btn clicks
  1172 + _gaq.push(['_trackEvent', 'ALL HEADINGS HIDDEN']);
1157 1173 $('.jokes').toggleClass('hidden');
1158 1174 }
1159 1175 });
11 untitled.html
... ... @@ -1,11 +0,0 @@
1   -<html type="application/msword">
2   -
3   -<h1>Heading 1</h1>
4   -<p>This text is <strong>bold</strong>, this <em>italic</em>, and this <span style="text-decoration: underline">underlined</span>.</p>
5   -<div dir="ltr" style="margin-left: 40px"><div dir="ltr" style="margin-left: 40px"><div dir="ltr" style="margin-left: 40px"><div dir="ltr" style="margin-left: 40px"><p>This text is <span style="font-family: Arial">Arial</span>, this <span style="font-family: Garamond">Garamond</span>, and this <span style="font-family: Verdana">Verdana</span>.</p></div></div></div></div>
6   -<ul>
7   -<li>Bullet 1 </li>
8   -<li>Bullet 2</li>
9   -</ul>
10   -
11   -</html>

0 comments on commit 06af202

Please sign in to comment.
Something went wrong with that request. Please try again.