Skip to content

Commit

Permalink
Merge pull request #348 from SuriyaaKudoIsc/patch-1
Browse files Browse the repository at this point in the history
Set links from http:// to https://
  • Loading branch information
jefflembeck committed Jan 27, 2017
2 parents be6167b + 4670dc0 commit 9d91fd4
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 22 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -7,9 +7,9 @@


The goal of this script is to provide a fast and lightweight (3kb minified / 1kb gzipped) script to enable [responsive web designs](http://www.alistapart.com/articles/responsive-web-design/) in browsers that don't support CSS3 Media Queries - in particular, Internet Explorer 8 and under. It's written in such a way that it will probably patch support for other non-supporting browsers as well (more information on that soon). The goal of this script is to provide a fast and lightweight (3kb minified / 1kb gzipped) script to enable [responsive web designs](http://www.alistapart.com/articles/responsive-web-design/) in browsers that don't support CSS3 Media Queries - in particular, Internet Explorer 8 and under. It's written in such a way that it will probably patch support for other non-supporting browsers as well (more information on that soon).


If you're unfamiliar with the concepts surrounding Responsive Web Design, you can read up [here](http://www.alistapart.com/articles/responsive-web-design/) and also [here](http://scottjehl.github.io/picturefill/) If you're unfamiliar with the concepts surrounding Responsive Web Design, you can read up [here](http://www.alistapart.com/articles/responsive-web-design/) and also [here](https://scottjehl.github.io/picturefill/)


[Demo page](http://scottjehl.github.io/Respond/test/test.html) (the colors change to show media queries working) [Demo page](https://scottjehl.github.io/Respond/test/test.html) (the colors change to show media queries working)




Usage Instructions Usage Instructions
Expand Down Expand Up @@ -64,7 +64,7 @@ respond with a 200 status.


- Sass/SCSS source maps are not supported; `@media -sass-debug-info` will break respond.js. Noted in issue [#148](https://github.com/scottjehl/Respond/issues/148) - Sass/SCSS source maps are not supported; `@media -sass-debug-info` will break respond.js. Noted in issue [#148](https://github.com/scottjehl/Respond/issues/148)


- Internet Explorer 9 supports css3 media queries, but not within frames when the CSS containing the media query is in an external file (this appears to be a bug in IE9 — see http://stackoverflow.com/questions/10316247/media-queries-fail-inside-ie9-iframe). See this commit for a fix if you're having this problem. https://github.com/NewSignature/Respond/commit/1c86c66075f0a2099451eb426702fc3540d2e603 - Internet Explorer 9 supports css3 media queries, but not within frames when the CSS containing the media query is in an external file (this appears to be a bug in IE9 — see https://stackoverflow.com/questions/10316247/media-queries-fail-inside-ie9-iframe). See this commit for a fix if you're having this problem. https://github.com/NewSignature/Respond/commit/1c86c66075f0a2099451eb426702fc3540d2e603


- Nested Media Queries are not supported - Nested Media Queries are not supported


Expand All @@ -88,4 +88,4 @@ Alternatives to this script
====== ======
This isn't the only CSS3 Media Query polyfill script out there; but it damn well may be the fastest. This isn't the only CSS3 Media Query polyfill script out there; but it damn well may be the fastest.


If you're looking for more robust CSS3 Media Query support, you might check out http://code.google.com/p/css3-mediaqueries-js/. In testing, I've found that script to be noticeably slow when rendering complex responsive designs (both in filesize and performance), but it really does support a lot more media query features than this script. Big hat tip to the authors! :) If you're looking for more robust CSS3 Media Query support, you might check out https://code.google.com/p/css3-mediaqueries-js/. In testing, I've found that script to be noticeably slow when rendering complex responsive designs (both in filesize and performance), but it really does support a lot more media query features than this script. Big hat tip to the authors! :)
4 changes: 2 additions & 2 deletions cross-domain/respond-proxy.html
Expand Up @@ -11,7 +11,7 @@
var domain, css, query, getQueryString, ajax, xmlHttp; var domain, css, query, getQueryString, ajax, xmlHttp;


/* /*
http://stackoverflow.com/questions/4963673/get-url-array-variables-in-javascript-jquery/4963817#4963817 https://stackoverflow.com/questions/4963673/get-url-array-variables-in-javascript-jquery/4963817#4963817
*/ */
getQueryString = function() { getQueryString = function() {
var ret = {}, parts, i, p; var ret = {}, parts, i, p;
Expand Down Expand Up @@ -93,4 +93,4 @@
}()); }());
</script> </script>
</body> </body>
</html> </html>

This comment has been minimized.

Copy link
@Quix0r

Quix0r Jan 24, 2018

Those new-line characters are important for POSIX-compilant editors, especially for old ones as they may crash when it is not found. Please put them back in again.

8 changes: 4 additions & 4 deletions cross-domain/respond.proxy.js
Expand Up @@ -16,7 +16,7 @@
var iframe, var iframe,
AXO; AXO;


// All hail Google http://j.mp/iKMI19 // All hail Google https://j.mp/iKMI19
// Behold, an iframe proxy without annoying clicky noises. // Behold, an iframe proxy without annoying clicky noises.
if ( "ActiveXObject" in win ) { if ( "ActiveXObject" in win ) {
AXO = new ActiveXObject( "htmlfile" ); AXO = new ActiveXObject( "htmlfile" );
Expand Down Expand Up @@ -47,7 +47,7 @@
iframe = null; iframe = null;




// Per http://j.mp/kn9EPh, not taking any chances. Flushing the ActiveXObject // Per https://j.mp/kn9EPh, not taking any chances. Flushing the ActiveXObject
if (AXO) { if (AXO) {
AXO = null; AXO = null;


Expand All @@ -66,7 +66,7 @@
win.setTimeout(checkFrameName, 500); win.setTimeout(checkFrameName, 500);
} }


// http://stackoverflow.com/a/472729 // https://stackoverflow.com/a/472729
function checkBaseURL(href) { function checkBaseURL(href) {
var el = document.createElement('div'), var el = document.createElement('div'),
escapedURL = href.split('&').join('&amp;'). escapedURL = href.split('&').join('&amp;').
Expand All @@ -79,7 +79,7 @@


function checkRedirectURL() { function checkRedirectURL() {
// IE6 & IE7 don't build out absolute urls in <link /> attributes. // IE6 & IE7 don't build out absolute urls in <link /> attributes.
// So respond.proxy.gif remains relative instead of http://example.com/respond.proxy.gif. // So respond.proxy.gif remains relative instead of https://example.com/respond.proxy.gif.
// This trickery resolves that issue. // This trickery resolves that issue.
if (~ !redirectURL.indexOf(location.host)) { if (~ !redirectURL.indexOf(location.host)) {


Expand Down
4 changes: 2 additions & 2 deletions dest/respond.matchmedia.addListener.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dest/respond.matchmedia.addListener.src.js
@@ -1,7 +1,7 @@
/*! Respond.js v1.4.2: min/max-width media query polyfill /*! Respond.js v1.4.2: min/max-width media query polyfill
* Copyright 2014 Scott Jehl * Copyright 2014 Scott Jehl
* Licensed under MIT * Licensed under MIT
* http://j.mp/respondjs */ * https://j.mp/respondjs */


/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas. Dual MIT/BSD license */ /*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas. Dual MIT/BSD license */
/*! NOTE: If you're already including a window.matchMedia polyfill via Modernizr or otherwise, you don't need this part */ /*! NOTE: If you're already including a window.matchMedia polyfill via Modernizr or otherwise, you don't need this part */
Expand Down Expand Up @@ -283,4 +283,4 @@
} else if (w.attachEvent) { } else if (w.attachEvent) {
w.attachEvent("onresize", callMedia); w.attachEvent("onresize", callMedia);
} }
})(this); })(this);

0 comments on commit 9d91fd4

Please sign in to comment.