View Single Post
Old 03-31-2017, 11:38 AM   #8
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,849
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by NikaZhenya View Post
You can change
Code:
$(document).ready(function() {
with
Code:
window.addEventListener('load', function () {
and you dont need JQuery

Example:

Code:
window.addEventListener('load', function () {
    window.frames["f1"].addEventListener("resize", setup);
});
Great tip! Many thanks for it.
RbnJrg is offline   Reply With Quote