適用するCSSを変更します
css.js
function changeCSS(orientation) { /* * htmlに設定してあるCSSのhrefを再指定することにより * 適用するcssを変更します。 */ var CSS = document.getElementById('MainCss'); if(orientation === 'horizontal'){ CSS.href="horizontal.css"; } if(orientation === 'virtical'){ CSS.href="virtical.css"; } }