Most recently, the jQTouch library was announced at Habré , which is designed to develop web-based interfaces for mobile devices. The jQuery iPhone UI library is designed for desktop browsers and simulates the iPhone interface.
< link rel = "stylesheet" href = css / iphone.css "type = 'text / css' media = 'all' />
<! - or horizontal ->
< div class = "iphone vertical" >
< div class = "phone" >
< div class = "topbar" > < / div >
< div class = "screen" >
< div class = "titlebar" >
iPhone UI
< / div >
< div class = "scroll" >
< / div >
< / div >
< / div >
<a href = "iphone.hohli.com" class = "bigbutton"> Exit < / a >
< / div >
<a href = "#" class = "iicon"> < em class = "ii-frame" > < / em > link with icon < / a >
<a href = "#" title = "Label" class = "button green"> Label < / a >
<a href = "#" title = "Label" class = "button white"> Label < / a >
<a href = "#" title = "Label" class = "button black"> Label < / a >
<a href = "#" title = "Label" class = "button orange"> Label < / a >
<a href = "#" title = "Label" class = "button red"> Label < / a >
< link rel = "stylesheet" href = "css / iphone.css" type = 'text / css' media = 'all' / >
< script type = "text / javascript" src = "js / jquery.js" > < / script >
< script type = "text / javascript" src = "js / jquery-ui.js" > < / script >
< script type = "text / javascript" src = "js / jquery.iphone.js" > < / script >
< script type = "text / javascript" src = "js / ui / ui.iMenu.js" > < / script >
< ul class = "imenu" >
< li > <a href = "upackinglist / description.html" title = "Description" class = "arrow"> Description < / a > < / li >
< li > <a href = "upackinglist / gallery.html" title = "Gallery" class = "arrow"> Gallery < / a > < / li >
< li > <a href = "#" title = "Try FREE version" class = "external"> Try FREE version < / a > < / li >
< li > <a href = "#" title = "Buy FULL version" class = "external"> Buy FULL version < span > $ 1.99 < / span > < / a > < / li >
< / ul >
// hang on the element with the class = screen
$ ( '.screen' ) . iMenuManager ( {
link : 'a [href! = #]: not (.external)' , // inside it we are looking for all the links that we will load with AJAX
content : '.screen' , // we will load only what is inside this selector
title : '.titlebar' , // inside this element we are looking for a title
back : '.titlebar' // inside this element we push the button back
} ) ;
< script type = "text / javascript" src = "js / ui / ui.iTabs.js" > < / script >
< script type = "text / javascript" >
$ (document) .ready (function () {
$ (". tabbar"). iTabs ();
});
< / script >
< ul class = "tabbar" >
<! - link indicates tab identifier ->
< li > <a class = "iicon" href = "#mail" title = "Mail"> < em class = "ii-envelope" > < / em > Mail < / a > < / li >
< li > <a class = "iicon" href = "#chat" title = "Chat"> < em class = "ii-chat2" > < / em > Chat < / a > < / li >
< li > <a class = "iicon" href = "#search" title = "Search"> < em class = "ii-magnify" > < / em > Search < / a > < / li >
< li > <a class = "iicon" href = "#options" title = "Options"> < em class = "ii-gear2" > < / em > Options < / a > < / li >
< / ul >
< div id = "mail" title = "Mail" > ... < / div >
< div id = "chat" title = "Chat" > ... < / div >
< div id = "search" title = "Search" > ... < / div >
< div id = "options" title = "Options" > ... < / div >
< script type = "text / javascript" src = "js / other / jquery.disable.text.select.js" > < / script >
< script type = "text / javascript" src = "js / other / jquery.mousewheel.js" > < / script >
< script type = "text / javascript" src = "js / ui / ui.iScroll.js" > < / script >
< div class = "iscroll" style = "height: 200px;" >
Lorem Ipsum ...
< / div >
< script type = "text / javascript" src = "js / ui / ui.iGallery.js" > < / script >
< div class = "igallery" style = "width: 320px; height: 480px" >
< img src = "images / home.jpg" alt = "Home Screen" / >
< img src = "images / list.jpg" alt = "" / >
< img src = "images / list_edit.jpg" alt = "" / >
< / div >
< script type = "text / javascript" src = "js / ui / ui.iInput.js" > < / script >
< script type = "text / javascript" src = "js / ui / ui.iPassword.js" > < / script >
< script type = "text / javascript" src = "js / ui / ui.iCheckBox.js" > < / script >
< script type = "text / javascript" src = "js / ui / ui.iRadioButton.js" > < / script >
< script type = "text / javascript" src = "js / ui / ui.iSelect.js" > < / script >
< script type = "text / javascript" src = "js / other / jquery.dPassword.js" > < / script >
< script type = "text / javascript" src = "js / other / jquery.backgroundPosition.js" > < / script >
< script type = "text / javascript" src = "js / other / jquery.mousewheel.js" > < / script >
< input class = "iinput" type = "text" id = "login" name = "login" value = "" / >
< input class = "ipassword" type = "password" id = "password" name = "password" value = "" / >
< input class = "icheckbox" type = "checkbox" id = "remember" name = "remember" value = "1" / > < label for = "remember" > remember me < / label >
< input class = "icheckbox" type = "checkbox" id = "noremember" name = "noremember" value = "1" checked = "checked" / > < label for = "noremember" > forgot me < / label >
< input class = "iradiobutton" type = "radio" name = "type" id = "type_abc" value = "ABC" checked = "checked" / > < label for = "type_abc" > ABC < / label >
< input class = "iradiobutton" type = "radio" name = "type" id = "type_def" value = "DEF" / > < label for = "type_def" > DEF < / label >
< input class = "iradiobutton" type = "radio" name = "type" id = "type_ghi" value = "GHI" / > < label for = "type_ghi" > GHI < / label >
< select class = "iselect" name = "options" style = "width: 100%" >
< option > Option 1 < / option >
< option selected = "selected" > Option 2 < / option >
< option > Option 3 < / option >
< option > Option 4 < / option >
< / select >
Source: https://habr.com/ru/post/68915/
All Articles