/* init js
 * Copyright 2016, wushulin
 * Date   2016/12/23
 * auther wushulin
 */
(function(win,doc){
	var docEl = doc.documentElement;
	var resizeEvt = 'orientationchange' in window?'orientationchange':'resize',
	recalc = function(){
		var clientWidth = docEl.clientWidth;
		if (!clientWidth) return;    
        docEl.style.fontSize = 100 * ( clientWidth / 750 ) + 'px';   
	}
	if(!doc.addEventListener) return;
	 win.addEventListener(resizeEvt, recalc, false);    
     doc.addEventListener('DOMContentLoaded', recalc, false);
})(window,document);