How to apply themeroller themes using grunticon
Hi,
I am using jquery-2.1.0 and jquery.mobile-1.4.2.
I have applied themes using grunticon loader as prescribed in JQM demos. So code in my html head looks something like this:
<script>
window.grunticon=function(e){if(e&&3===e.length){var t=window,n=!(!t.document.createElementNS||!t.document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect||!document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1")||window.opera&&-1===navigator.userAgent.indexOf("Chrome")),o=function(o){var r=t.document.createElement("link"),a=t.document.getElementsByTagName("script")[0];r.rel="stylesheet",r.href=e[o&&n?0:o?1:2],a.parentNode.insertBefore(r,a)},r=new t.Image;r.onerror=function(){o(!1)},r.onload=function(){o(1===r.width&&1===r.height)},r.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw=="}};
grunticon( [ "./mob/css/jquery.mobile.inline-svg-1.4.2.min.css", "./mob/css/jquery.mobile.inline-png-1.4.2.min.css", "./mob/css/jquery.mobile.external-png-1.4.2.min.css" ] );
</script>
<noscript id="grunticon-fallback">
<link href="./mob/css/jquery.mobile-1.4.2.css" rel="stylesheet">
</noscript>
<link rel="stylesheet" href="./mob/css/my.custom.theme-1.1.css" />
Now I created a new JQM 1.4.2 theme using themeroller. In the downloaded zip file I don't have all these css files(jquery.mobile.inline-svg-1.4.2.min.css, jquery.mobile.inline-png-1.4.2.min.css, jquery.mobile.external-png-1.4.2.min). So how to apply the downloaded theme using grunticon loader.
The downloaded zip file contains following files:
customTheme.css
customTheme.min.css
jquery.mobile.icons.min.css
images folder
One more doubt is, In my solution(The code snippet I have given above) I didn't include 'jquery.mobile.icons.min.css' and 'jquery.mobile.structure-1.4.2.css'. But while downloading the theme from themeroller, it guided me to include it. Should I include it? Which place should I include it in my solution. Is the sequence of css files and their inclusion incorrect in my solution.