Whatever message this page gives is out now! Go check it out!
<cfclientsettings detectDevice=true /> |
<cfClientSettings detectDevice=true />
<cfclient>
<cffunction access="public" name="showcanvassupport" returntype="void" >
<cfset document.getElementById('canvas').innerHTML=cfclient.properties.canvas>
</cffunction>
</cfclient>
Canvas support -<b id="canvas"></b><br>
<button onclick="invokeCFClientFunction('showcanvassupport',null)">
Show canvas support
</button>Features | Syntax |
Touch Events | cfclient.properties.touch |
Canvas Text | cfclient.properties.canvastext |
Canvas | cfclient.properties.canvas |
Geolocation | cfclient.properties.geolocation |
Web Sockets | cfclient.properties.websockets |
Drag ‘n Drop | cfclient.properties.draganddrop |
History | cfclient.properties.history |
applicationCache | cfclient.properties.applicationcache |
localStorage | cfclient.properties.localstorage |
Width | cfclient.properties.width |
Height | cfclient.properties.height |
Device Width | cfclient.properties.deviceWidth |
Device Height | cfclient.properties.deviceHeight |
Orientation | cfclient.properties.orientation |
Device Group Name | cfclient.properties.deviceGroupName |
Device Group Descriptions | cfclient.properties.deviceGroupDescription |
CSS Animations | cfclient.properties.cssanimations |
CSS Columns | cfclient.properties.csscolumns |
CSS Generated Content | Cfclient.properties.generatedcontent |
CSS Gradients | cfclient.properties.cssgradients |
CSS Reflections | cfclient.properties.cssreflections |
CSS 2D Transforms | cfclient.properties.csstransforms |
CSS 3D Transforms | cfclient.properties.csstransforms3d |
CSS Transitions | cfclient.properties.csstransitions |
Audio | cfclient.properties.audio |
Video | cfclient.properties.video |
Hash Change | cfclient.properties.hashchange |
IndexedDB | cfclient.properties.indexeddb |
Input Attributes | cfclient.properties.input.* (* refers to attributes for input elements. For possible values, see the Modernizr documentation) |
Input Types | cfclient.properties.inputtypes.* (* refers to input type attributes. For possible values, see the Modernizr documentation) |
Post Message | cfclient.properties.postmessage |
Session Storage | cfclient.properties.sessionstorage |
Web Workers | cfclient.properties.webworkers |
Web SQL Database | cfclient.properties.websqldatabase |
<cfclientsettings detectDevice=true /> <cfclient> <cfif cfclient.properties.width lte 480 > <cfinclude template=" phone.css "> <cfelseif cfclient.properties.width gte 480 AND cfclient.properties.width lte 760> <cfinclude template=" tablet.css "> <cfelse> <cfinclude template=" desktop.css "> </cfif> </cfclient> |
<cfclientsettings detectDevice=true />
<cfclient>
<cfoutput>
Orientation : <b id="orientationId"></b><br>
Width : <b id="width"></b><br>
Height : <b id="height"></b><br>
</cfoutput>
<!--- Adding the orientation handler here. After adding
the handler, the handler will be invoked whenever there
is an orientation change. --->
<cfset cfclient.addOrientationListener(orientationHandler)>
<cffunction access="public" name="orientationHandler"
returntype="void" >
<cfargument name="orientationString" type="string">
<!--- The orientation (landscape/portrait) will be
passed as an argument to the handler. You can also get
the orientation value from cfclient. --->
</cffunction>
</cfclient><cffunction access="public" name="removeorientationhandler"
returntype="void" >
<cfset cfclient.removeOrientationListener(orientationhandler)>
</cffunction><cfset cfclient.addOrientationListener(orientationHandler1)>
<cfset cfclient.addOrientationListener(orientationHandler2)><cfclientsettings detectDevice=true />
<cfclient>
<cfoutput>
Width :<b id="width"></b><br>
Height :<b id="height"></b><br>
Device width :<b id="devicewidth"></b><br>
Device height :<b id="deviceheight"></b><br>
</cfoutput>
<!--- Adding the resize handler here.
After adding the handler, the handler will be
invoked whenever there is a browser
resize. --->
<cfset cfclient.addResizeListener(resizehandler)>
<cffunction access="public" name="resizehandler"
returntype="void" >
<cfargument name="width" type="string">
<cfargument name="height" type="string">
<cfset document.getElementById('width').innerHTML=width>
<cfset document.getElementById('height').innerHTML=height>
<cfset document.getElementById('devicewidth').innerHTML=cfclient.properties.deviceWidth>
<cfset document.getElementById('deviceheight').innerHTML=cfclient.properties.deviceHeight>
</cffunction>
</cfclient><cfset cfclient.addResizeListener(resizeHandler1)>
<cfset cfclient.addResizeListener(resizeHandler2)><cffunction access="public" name="removeresizehandler"
returntype="void" >
<cfset cfclient.removeResizeListener(resizeHandler)>
</cffunction><cfclientsettings detectDevice=true deviceTimeOut="30" />