Skip to content

Commit 4310889

Browse files
committed
added analytics
1 parent fda7bc2 commit 4310889

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎index.html‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ <h5 class="label-warp"><span class="label label-{type}" data-toggle="tooltip" d
153153
}
154154

155155
var els = {
156+
body: $('body'),
156157
title: $('.main-title h1'),
157158

158159
searchForm: $('.search-form'),
@@ -180,6 +181,7 @@ <h5 class="label-warp"><span class="label label-{type}" data-toggle="tooltip" d
180181
function init(){
181182
bindEvent();
182183
searchObj = new searchPage(renderSearchResult);
184+
renderAnalytics();
183185
}
184186

185187
function onSearch(){
@@ -231,9 +233,13 @@ <h5 class="label-warp"><span class="label label-{type}" data-toggle="tooltip" d
231233
els.searchBtn.html((val.length && val==els.lastVal)?'Next Group':'Search');
232234
}
233235

236+
function renderAnalytics(){
237+
els.body.append('<iframe src="http://www.mihtool.com/analytics.html?codelf" style="display: none;width: 0;height: 0;border: 0;"></iframe>');
238+
}
239+
234240
function getRandomLabelType(){
235241
var types = ['default','primary','success','info','warning','warning','danger'];
236-
return randomList(types,1,null,10)[0];
242+
return randomList(types,1)[0];
237243
}
238244

239245
init();

0 commit comments

Comments
 (0)