开发者

jquery accordion - show all if https?

Using jquery accordion and the https version of page needs to be secure, and 开发者_C百科with the accordion, a bunch of IE security warnings come up. Is there a way to show all/disable accordion if in https?

Thanks!


You can check if you're in an HTTPS page like so:

var secure = (window.location.protocol === 'https:');
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜