mobile

ActionScript 3 AIR — Video make blink jump

邮差的信 提交于 2020-01-05 04:17:05
问题 I make an application for iOS and Android using ActionScript 3 and Adobe AIR ( 3.7 ) to build the ipa and apk. In this application, I load a Video from an FLV and add it in the scene. The problem is, on the emulator or the Flash view, all is ok, but, on the iPad ( test on iPad 1, 2 and 3 with same results ) the video makes shorts jumps ( like a sudden freeze follow by a short jump into the time-line ) every 2 secondes, approximately. Of course, I make sure that the video wasn't under other

html5 video fallback advice (no flash)

孤者浪人 提交于 2020-01-05 03:44:24
问题 I'm looking for a creative way to replace an HTML5 video with an image under a few circumstances. Don't want to deal with flash or anything like that to make the video work... would rather give them an image. Give them the image if: If the desktop browser doesn't support HTML5 video If the user is mobile Seems simple... especially by using Modernizr for css tags with display:none; if the video isn't supported ... so here's the caveat: The HTML5 video is edge to edge and centered to the screen

Stellar Parallax to run on desktop, static image on mobile device

笑着哭i 提交于 2020-01-05 02:36:46
问题 My website is using Stellar.js to create a parallax effect on a number of images that cover the width of the users screen. Stellar scrolls across the image at half the speed the user scrolls down the page creating a nice effect. I originally used this code: MY CSS FILE /* Separator About - Parallax Section */ .sep { background-attachment: fixed!important; background-position: 50% 0!important; background-repeat: no-repeat!important; width: 100%!important; height: 180px!important; position:

Mobile browsers horizontal scrollable inside vertical scrollable

霸气de小男生 提交于 2020-01-04 20:16:33
问题 Here's a Fiddle showing the issue. Basically, I have a div inside a div. Both need scrolling, but one needs horizontal scrolling (the outer one), the other one needs vertical scrolling (the inner one). On a PC this works fine, but on mobile browsers (checked stock Android and mobile Chrome), I can only scroll (slide) horizontally, but not vertically. Any clues? Code below: HTML: <div class="outer"> <div class="firstContainer"> <div class="secondContainer"> </div> </div> </div> CSS: .outer {

Mobile browsers horizontal scrollable inside vertical scrollable

假如想象 提交于 2020-01-04 20:11:50
问题 Here's a Fiddle showing the issue. Basically, I have a div inside a div. Both need scrolling, but one needs horizontal scrolling (the outer one), the other one needs vertical scrolling (the inner one). On a PC this works fine, but on mobile browsers (checked stock Android and mobile Chrome), I can only scroll (slide) horizontally, but not vertically. Any clues? Code below: HTML: <div class="outer"> <div class="firstContainer"> <div class="secondContainer"> </div> </div> </div> CSS: .outer {

Mobile redirection - back to desktop

安稳与你 提交于 2020-01-04 15:28:44
问题 I am using the PHP code supplied by Detect Mobile Browsers for server-side redirection, which works well, but I'm looking to have a 'Back to Desktop' link. Of course, this will cause an infinite loop and the user would never be able to visit the desktop site. So, is there a solution out here for this? I understand that you'd have to use cookies, which is fine, but any help with this would be appreciated. Here's what I have so far: $useragent=$_SERVER['HTTP_USER_AGENT']; if(preg_match('/

Mobile redirection - back to desktop

邮差的信 提交于 2020-01-04 15:28:19
问题 I am using the PHP code supplied by Detect Mobile Browsers for server-side redirection, which works well, but I'm looking to have a 'Back to Desktop' link. Of course, this will cause an infinite loop and the user would never be able to visit the desktop site. So, is there a solution out here for this? I understand that you'd have to use cookies, which is fine, but any help with this would be appreciated. Here's what I have so far: $useragent=$_SERVER['HTTP_USER_AGENT']; if(preg_match('/

jquery mobile and flot library

♀尐吖头ヾ 提交于 2020-01-04 06:26:27
问题 I am implementing flot in a small jquery mobile framework site. The page / content div that contains the flot is on a secondary page. The first time the flot page is shown, the chart renders nicely. Moving back to the primary page and forward again to the flot page, the chart does not render. The content is coming from an asp mvc view: <div id="chartcontainer"> <div id="chartdiv" style="height:300px;width:400px;"></div> </div> <script type="text/javascript"> $(function () { var d1 = [[1, 1],

designing web interfaces for mobile devices

房东的猫 提交于 2020-01-04 05:29:08
问题 How do you make your website look good in both a standard browser and on the various mobile devices available? Currently I am undecided between trying to make my layout resizable so that it will work for small devices, or providing a separate CSS for mobile devices. My use case is a chess game where I want the entire board to be available without scrolling down. What would you recommend? 回答1: basically there is no easy way to do this, you can use CSS on most modern phones to control the

Bootstrap mobile menu wont stay open

為{幸葍}努か 提交于 2020-01-04 04:05:27
问题 First question here, thank you for your patience. I looked for a similar question and was surprised I didn't find one honestly. I learned enough to create a fiddle for this as well. You can see it here https://jsfiddle.net/jhallwebdev/gm6r6mLu/5/ HTML <body> <div class="container-fluid"> <div class="row yellow container-fluid"> <!-- YELLOW NAV ROW --> <div class="col-lg-1 col-md-2 col-sm-2 col-xs-2"> <div> <img src="logo.jpeg" alt="logo" title="logo" width="100px" height="100px" class="my