@manhng

Welcome to my blog!

Browser IE11

March 5, 2020 13:19

Browser IE11 (edit)

Responsive Web Design

Non Responsive Web Design

https://bootstrapdocs.com/v3.3.6/docs/examples/non-responsive/

Responsive Web Design:

https://bootstrapdocs.com/v3.3.6/docs/examples/dashboard/

Bootstrap 4+5 (IE11):

https://getbootstrap.com/

https://blog.bootswatch.com/

Bootstrap 3 (IE8+9):

https://bootstrapdocs.com/v3.3.6/docs/getting-started/

https://www.w3schools.com/icons/default.asp (Font Awesome)

https://bootstrapdocs.com/v3.3.6/docs/components/#glyphicons (Glyphicons)

https://bootstrapdocs.com/v3.3.6/docs/examples/dashboard/ (Dashboard Admin Theme)

https://fonts.google.com/

https://github.com/typekit/webfontloader

https://thomaspark.co/projects/fontcdn/

https://github.com/seatgeek/react-infinite

https://qwerty.dev/ (Font)

https://glyphsearch.com/ (Icon)

https://wrapbootstrap.com/

https://bootswatch.com/

https://www.toptal.com/twitter-bootstrap/the-10-most-common-bootstrap-mistakes

http://thegioi360.vn/posts/t6252-10-Loi-thuong-gap-khi-dung-Bootstrap

https://viblo.asia/p/10-loi-thuong-gap-khi-su-dung-bootstrap-l5XRBJEbRqPe

https://www.toptal.com/front-end/what-is-bootstrap-a-short-tutorial-on-the-what-why-and-how

Tip 1: Những ví dụ tốt cho thấy những thiết kế khác nhau có được bằng cách nào được trình bày ở Bootstrap Expo, một trang tập hợp những sites dùng Bootstrap. Hãy xem xét, lấy cảm hứng, và bắt đầu xây dựng thiết kế riêng biệt của bạn.

Tip 2: Hãy bắt đầu bằng việc không dùng file bootstrap.js, và tạo site chỉ bằng HTML và CSS. Sau đó, thêm thành phần nào cần cho những việc cụ thể, từng cái một.

Tip 3: Bootlint: tool kiểm tra cấu trúc HTML của những projects dùng Bootstrap.

Tip 4: Bootstrap là framework ưu tiên hỗ trợ mobile (mobile first framework) + thiết bị cảm ứng không có hành động rê chuột, mà chỉ có hành động chạm (only touch events) nên trên mobile nó sẽ không làm việc đúng.

IE test example page:

http://output.jsbin.com/kuvoz/1

https://css-tricks.com/box-sizing/

https://accessibility.psu.edu/headings/

WordPress

https://thomaspark.co/

Common social media icons:

  • Facebook (fa fa-facebook) to be used for Facebook pages; or (fa fa-facebook-square) to be used for Facebook groups
  • Twitter (fa fa-twitter)
  • Google Plus (fa fa-google-plus)
  • Github (fa fa-github)
  • Pinterest (fa fa-pinterest)
  • LinkedIn (fa fa-linkedin)
  • Flickr (fa fa-flickr)
  • Instagram (fa fa-instagram)
  • Vimeo (fa fa-vimeo)
  • Tumblr (fa fa-tumblr)
  • Skype (fa fa-skype)
  • YouTube (fa fa-youtube); or (fa fa-youtube-play)
  • Blogger (fa fa-blogger)
  • WordPress (fa fa-wordpress)
  • Snapchat (fa-snapchat-ghost)
  • RSS (fa fa-rss)

Framework Use:

https://support.microsoft.com/en-us/help/3135465/how-to-enable-javascript-in-windows

https://stackoverflow.com/questions/19999388/check-if-user-is-using-ie (HAY)

https://www.sitepoint.com/check-ie-version/

https://stackoverflow.com/questions/9847580/how-to-detect-safari-chrome-ie-firefox-and-opera-browser (HAY)

DOMContentLoaded vs jQuery.ready

https://eager.io/blog/how-to-decide-when-your-code-should-run/

JavaScript HTML DOM EventListener

https://www.w3schools.com/js/js_htmldom_eventlistener.asp

https://www.w3schools.com/jsref/met_element_addeventlistener.asp

setTimeout

https://freetuts.net/settimeout-va-setinterval-trong-javascript-391.html

Examples

....
<script type="text/javascript" language="javascript">
function StyleForMsIEVersionOnly() {
var ua = window.navigator.userAgent;
var msie = ua.indexOf("MSIE ");
if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./))
{
document.getElementById("tdElement").style.padingRight = "124px";
} else {
document.getElementById("tdElement").style.paddingRight = "94px";
}
}
function showWaitingMessage() {
document.getElementById("spanElement").style.display = 'block'; // to show SPAN
setTimeout(function () {
hideWaitingMessage();
}, 3000);
}
function hideWaitingMessage() {
document.getElementById("spanElement").style.display = 'none'; // to hide SPAN
}
window.addEventListener('DOMContentLoaded', function () {
StyleForMsIEVersionOnly();
document.getElementById("spanElement").style.display = 'none';
document.getElementById("btnAction").addEventListener("click", showWaitingMessage);
});
</script>
</div>
</asp:Panel>
</asp:Content>

Browser Detection with JavaScript

May 18, 2018 13:08

Browser Detection with JavaScript (edit)

Chrome

Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36

Mozilla Firefox

Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0

Mozilla Firefox Developer Edition

Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0

IE

Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3; rv:11.0) like Gecko

Safari

Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2

Opera

Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.170 Safari/537.36 OPR/53.0.2907.57

Microsoft Edge (for Windows 10 only)

https://docs.microsoft.com/en-us/microsoft-edge/deploy/hardware-and-software-requirements

Cốc Cốc

Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) coc_coc_browser/70.4.208 Chrome/64.4.3282.208 Safari/537.36

Clear the history and cookies from Safari on your iPhone, iPad, or iPod touch

https://support.apple.com/en-vn/HT201265

How to delete cache file in webView

https://gist.github.com/MotiurRahman/10109159

Categories

Recent posts