opera

Detect if website is being served thru a proxy server like Opera Mini?

谁说我不能喝 提交于 2019-12-06 13:36:01
问题 Many feature phones use Opera Mini to serve webpages. Similarly Kindle Fire uses Amazon Silk. Is there a way in JavaScript to detect that a proxy is being used without UA detection? 回答1: In Opera Mini's case: no. The JavaScript will in fact be executed by the "proxy server", not by the real client. 回答2: My hypothesis is that such cloud based browsers cannot support a subset of events. For detecting such browsers I am using a javascript test that checks support for an event scroll . var

How to set browser window size for Chrome and Opera launched by Selenium WebDriver in incognito/private mode?

自作多情 提交于 2019-12-06 13:30:14
I'm working on application which will execute tests on multiple browser types (Chrome, FireFox, Internet Explorer and Opera). I found the way how to launched them in incognito/private modes ( How to open incognito/private window with Selenium WD for different browser types? ) and set window size ( Browser window control #174 ): Window window = driver.manage().window(); window.setPosition(new Point(0, 0)); window.setSize(new Dimension(width, height)); But this code does not work in all cases: +-------------------+----------+-------------------+ | Browser | Standard | Incognito/Private | |------

Opera + border-radius + svg background = bug?

丶灬走出姿态 提交于 2019-12-06 12:38:53
问题 i've got bug in Opera 11.64 browser. Check it out here http://jsfiddle.net/wqCDm/13/ Button has background: url(data:image/svg+xml;base64... and is located in block with position: fixed . When you start scroll page background rolls away, and after you get back to the top it shows up again. Without border-radius it works properly. 回答1: I confirmed that this is a bug and it is still the case in Opera 12. Did you report it on Opera Bugs Reporting system? Update 2012-06-21 : OK. CONFIRMED. It is

border-radius rendering strangely in opera (fine in chrome, firefox)

。_饼干妹妹 提交于 2019-12-06 12:33:08
http://jsfiddle.net/eE4Y2/2/ I'm trying to use css to create a rounded, folded corner illusion for a div. I cannot figure out why this fairly simple html/css renders strangely in opera (v.12.10) but looks fine in chrome and firefox. When I apply a border-radius to the div, a strange notch appears within the border, on opera only. Please see the jsfiddle above to see an example. I'd love to hear a fix or at least an explanation as to what's going on with Opera in this case. <body> <div class="example"></div> </body> body { background-color: gray; padding: 50px; } div.example { border-bottom

Cross-Origin Resource Sharing for Opera

删除回忆录丶 提交于 2019-12-06 12:11:24
Has anybody found a workaround for Opera regarding Cross-Origin Resource Sharing? I want to make a cross domain XmlHttpRequest to my domain foo.com from my script placed on bar.com. The standard so far is not implemented by Opera. Examples and documentation on how to do this on other browsers can be found here As far as I tested, you can do this on Firefox, IE, Safari and Chrome. But not on Opera. Possible alternative is to use JSONP for cross domain requests. JSONP is the best/only way to get basic CORS functionality (only GET, as it uses a <script> tag internally) if the browser doesn't

Looking for Wii compatible Javascript Flash mp3 player

时间秒杀一切 提交于 2019-12-06 10:49:22
I am looking for a flash mp3 player that will work within the Opera-based browser on the Wii. The player needs to be javascript enabled (support methods like play, stop etc.) The mp3 tracklist will be built dynamically using ajax on the same page as the player so it must trigger an event when a track finishes playing (or at least provide functionality of some kind to indicate that it's time to start the next track). Does anyone know of such a player? I have looked at these players: jPlayer : Does not work on the Wii. flash mp3 player : All versions of this player work on the Wii except the js

JavaScript对象的长度

巧了我就是萌 提交于 2019-12-06 10:31:04
我有一个JavaScript对象,是否有内置的或公认的最佳实践方法来获取此对象的长度? const myObject = new Object(); myObject["firstname"] = "Gareth"; myObject["lastname"] = "Simpson"; myObject["age"] = 21; #1楼 更新 :如果您使用的是 Underscore.js (建议使用,它是轻量级的!),那么您可以 _.size({one : 1, two : 2, three : 3}); => 3 如果不是 ,并且您不想由于任何原因弄乱Object属性,并且已经在使用jQuery,那么同样可以访问一个插件: $.assocArraySize = function(obj) { // http://stackoverflow.com/a/6700/11236 var size = 0, key; for (key in obj) { if (obj.hasOwnProperty(key)) size++; } return size; }; #2楼 以下是James Coglan在CoffeeScript中针对那些放弃了直接JavaScript的人的答案:) Object.size = (obj) -> size = 0 size++ for own key of

IT兄弟连 HTML5教程 CSS3属性特效 小结及习题

試著忘記壹切 提交于 2019-12-06 09:40:24
本章小结 CSS3新增了许多属性,CSS3样式新增了一种颜色模式rgba用来制作透明色,比CSS的颜色模式多了一个透明度的设置。文字的CSS3特效有文字阴影、文字描边、文字排版和文字省略等。另外,CSS3增加了弹性盒模型,我们可以为盒模型增加阴影和倒影。CSS3的分栏布局让WEB开发人员轻松的让文本呈现多列显示。传统的圆角生成方案,必须使用多张图片作为背景图案。CSS3的出现,使得我们再也不必浪费时间去制作这些图片了,仅需要通过设置border-radius属性即可。通过CSS3,我们能够创建圆角边框,向矩形添加阴影,使用图片来绘制边框。CSS3 Gradient分为linear-gradient(线性渐变)和radial-gradient(径向渐变)。CSS3规范中对背景这一部分,新加入设定多个背景图片、指定背景大小、设置背景渐变等功能。遮罩提供一种基于像素级别的,可以控制元素透明度的能力,类似于png24位或png32位中的alpha透明通道的效果。transition允许CSS的属性值在一定的时间区间内平滑地过渡。2D变换和3D变换能够对元素进行移动、缩放、转动、拉长或拉伸。制作动画需要使用animation属性,执行动作需要由关键帧@keyframes来控制。 本章习题 1.在CSS中,注释代码是(B) A.<!--> B./**/ C.// D.|| 2

IT兄弟连 HTML5教程 CSS3属性特效 小结及习题

不想你离开。 提交于 2019-12-06 09:27:34
本章小结 CSS3新增了许多属性,CSS3样式新增了一种颜色模式rgba用来制作透明色,比CSS的颜色模式多了一个透明度的设置。文字的CSS3特效有文字阴影、文字描边、文字排版和文字省略等。另外,CSS3增加了弹性盒模型,我们可以为盒模型增加阴影和倒影。CSS3的分栏布局让WEB开发人员轻松的让文本呈现多列显示。传统的圆角生成方案,必须使用多张图片作为背景图案。CSS3的出现,使得我们再也不必浪费时间去制作这些图片了,仅需要通过设置border-radius属性即可。通过CSS3,我们能够创建圆角边框,向矩形添加阴影,使用图片来绘制边框。CSS3 Gradient分为linear-gradient(线性渐变)和radial-gradient(径向渐变)。CSS3规范中对背景这一部分,新加入设定多个背景图片、指定背景大小、设置背景渐变等功能。遮罩提供一种基于像素级别的,可以控制元素透明度的能力,类似于png24位或png32位中的alpha透明通道的效果。transition允许CSS的属性值在一定的时间区间内平滑地过渡。2D变换和3D变换能够对元素进行移动、缩放、转动、拉长或拉伸。制作动画需要使用animation属性,执行动作需要由关键帧@keyframes来控制。 本章习题 1.在CSS中,注释代码是(B) A.<!--> B./**/ C.// D.|| 2

Opera Mini Jquery AJAX not loading

走远了吗. 提交于 2019-12-06 08:30:38
I have been developing a website for mobile devices. However due to some reasons, AJAX calls are not working on Opera Mini. For Example - one such request for loading more content at the end of page (70%) $(document).scroll(function (e) { if (processing) return false; if ($(window).scrollTop() >= ($(document).height() - $(window).height()) * 0.7) { processing = true; $.ajax({ type: "GET", url: "/ajax/popup-loadmore-test.php", data: { entityid: $("#e").attr("data-id"), version: version } }).done(function (msg) { console.log("Data emitted: " + msg); $('#f').append(msg); version++; processing =