•  
     

Universal video bbcode - phpBB3

Uso do BBCode:

Código: Selecionar todos

[video]{URL}[/video]


Substituição do HTML:

Código: Selecionar todos

<div class='bbvideo' data-url='{URL}' style='width: 640px; height: 390px; margin: 2px 0; display: inline-block; background: #000; color: #fff; overflow: hidden; vertical-align: bottom;'><div style='height: 100%;'><script>if (typeof bbmedia == 'undefined') { bbmedia = true; var e = document.createElement('script'); e.async = true; e.src = 'http://phpbbex.com/api/bbmedia.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(e, s); }</script></div><div style='text-align: right; height: 14px; margin-top: -14px; padding-right: 2px; font: 10px/10px Verdana; color: #555;'><a style='color: #105289; text-decoration: none;' href='http://phpbbex.com/' target='_blank'>phpBB</a> &#91;video&#93;</div></div>


Linha de ajuda:

Código: Selecionar todos

[video]http://youtube.com/url[/video]



•youtube.com (youtu.be)
•vimeo.com
•vk.com (vkontakte.ru)
•facebook.com
•dailymotion.com
•ustream.tv
•twitch.tv
•metacafe.com
•video.google.com
•video.yandex.ru
•myvideo.de
•own3d.tv
•clipfish.de
•veevr.com
•rutube.ru
•video.mail.ru
•smotri.com
•video.qip.ru
•video.bigmir.net
•tvigle.ru
•video.online.ua
•video.sibnet.ru
•yapfiles.ru
•megogo.net
•intv.ru
•lovi.tv
•Etc

Use:

Código: Selecionar todos

[video]http://www.youtube.com/watch?v=cFsaAowGYSk[/video]

Ou

Código: Selecionar todos

[video=640,400]http://vimeo.com/22439234[/video]







https://www.phpbb.com/customise/db/bbcode/video/
http://phpbbex.com/forum/viewtopic.php?t=25&start=120
https://www.phpbb.com/community/viewtop ... &t=2156491
 
Código antigo para edição

Código: Selecionar todos

// BB [media] v1.40 [11.07.2013] (C) 2013 Evgeny Vrublevsky, http://phpbbex.com/
// Licensed under CC BY-NC-ND, http://creativecommons.org/licenses/by-nc-nd/3.0/
(function () {
    var b = "audio";
    var m = "video";
    var a = "media";
    if (typeof bbmediajs != "undefined") {
        return
    }
    bbmediajs = true;
    var j = function (p, r, e, o) {
        o = jQuery.extend({
            frameborder: "0"
        }, o);
        var q = '<iframe style="vertical-align: bottom; width: ' + r + "px; height: " + e + 'px;" width="' + r + '" height="' + e + '" src="' + p + '" webkitallowfullscreen mozallowfullscreen allowfullscreen';
        jQuery.each(o, function (s, t) {
            q += " " + s + '="' + t + '"'
        });
        return q + "></iframe>"
    };
    var g = function (q, s, e, p) {
        p = jQuery.extend({
            allowscriptaccess: "never",
            allowfullscreen: "true",
            ignorewheel: false
        }, p);
        var r = ' width="' + s + '" height="' + e + '"' + (p.ignorewheel ? ' ignorewheel="1"' : "");
        var t = '<object style="vertical-align: bottom;" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"' + r + '><param name="movie" value="' + q + '" />';
        var o = '<embed style="vertical-align: bottom;" type="application/x-shockwave-flash"' + r + ' src="' + q + '"';
        delete p.ignorewheel;
        jQuery.each(p, function (u, v) {
            t += '<param name="' + u + '" value="' + v + '" />';
            o += " " + u + '="' + v + '"'
        });
        return t + o + "></embed></object>"
    };
    var n = function (s, E, C, y) {
        var I = (y == a);
        var A = (y == b);
        var u = (y == m);
        var x = (A || I);
        var F = (u || I);
        var v = false;
        var t = false;
        if (!E && !C) {
            v = true;
            t = true;
            E = 640;
            C = 360
        } else {
            if (!E) {
                v = true;
                E = parseInt(C * (16 / 9))
            } else {
                if (!C) {
                    t = true;
                    C = parseInt(E * (9 / 16))
                }
            }
        }
        var J;
        s = jQuery.trim(s);
        if (F && (J = s.match(/^https?:\/\/(?:www\.)?youtube(?:-nocookie)?\.com\/(?:playlist\?(?:.*&)?list=|embed\/videoseries\?(?:.*&)?list=|p\/|view_play_list\?(?:.*&)?p=)([-_\w\d]+)/i))) {
            if (t) {
                C += 30
            } else {
                if (v) {
                    E += 53
                }
            }
            return j("http://www.youtube.com/embed/videoseries?list=" + J[1], E, C)
        }
        if (F && (J = s.match(/^https?:\/\/(?:www\.)?(?:youtu\.be\/|(?:m\.)?youtube(?:-nocookie)?\.com\/(?:watch\?(?:.*&)?v=|embed\/|v\/))([-_\w\d]+)(?:.*(?:[&?]start|[?&#]t)=(?:(\d+)h)?(?:(\d+)m)?(\d+)?)?/i))) {
            if (t) {
                C += 30
            } else {
                if (v) {
                    E += 53
                }
            }
            var r = parseInt(J[2] ? J[2] : 0) * 3600 + parseInt(J[3] ? J[3] : 0) * 60 + parseInt(J[4] ? J[4] : 0);
            return j("http://www.youtube.com/embed/" + J[1] + (r ? "?start=" + r : ""), E, C)
        }
        if (F && (J = s.match(/^https?:\/\/(?:www\.)?(?:vimeo\.com|player\.vimeo\.com\/video)\/(\d+)/i))) {
            return j("http://player.vimeo.com/video/" + J[1], E, C)
        }
        if (F && (J = s.match(/^https?:\/\/(?:www\.)?(?:vk\.com|vkontakte\.ru)\/video_ext\.php\?oid=([-_\w\d]+)&id=([-_\w\d]+)&hash=([-_\w\d]+)(&sd|&hd=1|&hd=2|)/i))) {
            return j("http://vk.com/video_ext.php?oid=" + J[1] + "&id=" + J[2] + "&hash=" + J[3] + J[4], E, C)
        }
        if (F && (J = s.match(/^https?:\/\/(?:www\.)?(?:rutube\.ru\/(?:video\/)?embed\/|video\.rutube\.ru\/)(\d+)/i))) {
            return j("http://rutube.ru/video/embed/" + J[1], E, C, {
                scrolling: "no"
            })
        }
        if (F && (J = s.match(/^https?:\/\/(?:www\.)?(?:smotri\.com\/video\/view\/\?(?:.*&)?id=|pics\.smotri\.com\/player\.swf\?(?:.*&)?file=)([\w\d]+)/i))) {
            return g("http://pics.smotri.com/player.swf?file=" + J[1] + "&bufferTime=3&autoStart=false&str_lang=rus", E, C)
        }
        if (F && (J = s.match(/^https?:\/\/(?:video\.qip\.ru\/video\/view\/\?(?:.*&)?id=|pics\.video\.qip\.ru\/player\.swf\?(?:.*&)?file=)([\w\d]+)/i))) {
            return g("http://pics.video.qip.ru/player.swf?file=" + J[1] + "&bufferTime=3&autoStart=false&str_lang=rus", E, C)
        }
        if (F && (J = s.match(/^https?:\/\/video\.google(?:\.com)?\.\w+\/(?:videoplay|googleplayer\.swf)\?(?:.*[&#])?docid=([-\d]+)/i))) {
            return g("http://video.google.com/googleplayer.swf?docid=" + J[1] + "&fs=true", E, C)
        }
        if (F && (J = s.match(/^https?:\/\/photo\.tvigle\.ru\/resource\/rf\/swf\/([\/\d\w]*)\.swf/i))) {
            return g("http://photo.tvigle.ru/resource/rf/swf/" + J[1] + ".swf", E, C)
        }
        if (F && (J = s.match(/^https?:\/\/video\.bigmir\.net\/(?:show|player)\/(\d+)/i))) {
            return j("http://video.bigmir.net/player/" + J[1] + "/", E, C)
        }
        if (F && (J = s.match(/^https?:\/\/video\.mail\.ru\/([^\/]+)\/([^\/]+)\/([-_\d\w]+)\/([-_\d\w]+)\.html/i))) {
            return g("http://img.mail.ru/r/video2/uvpv3.swf?2", E, C, {
                flashvars: "movieSrc=" + J[1] + "/" + J[2] + "/" + J[3] + "/" + J[4] + "&autoplay=0"
            })
        }
        if (F && (J = s.match(/^https?:\/\/video\.sibnet\.ru\/(?:(?:[\w\d\/]+)\/video|shell\.swf\?videoid=)(\d+)/i))) {
            return g("http://video.sibnet.ru/shell.swf?videoid=" + J[1], E, C)
        }
        if (F && (J = s.match(/^https?:\/\/video\.online\.ua\/(?:embed\/)?([\d\w]+)/i))) {
            return j("http://video.online.ua/embed/" + J[1] + "/", E, C, {
                scrolling: "no"
            })
        }
        if (F && (J = s.match(/^https?:\/\/(?:(?:www\.)intv\.ru\/v\/|flash\.intv\.ru\/uplay\/)([\d\w]+)/i))) {
            return g("http://flash.intv.ru/uplay/" + J[1], E, C)
        }
        if (F && (J = s.match(/^https?:\/\/(?:www\.)?metacafe\.com\/(?:watch|fplayer)\/(\d+)\/([^\/.]+)/i))) {
            return g("http://www.metacafe.com/fplayer/" + J[1] + "/" + J[2] + ".swf", E, C, {
                flashvars: "playerVars=autoPlay=no"
            })
        }
        if (F && (J = s.match(/^https?:\/\/(?:www\.)?lovi\.tv\/video\/(?:sharer\.php\?Code=)?([\d\w]+)/i))) {
            return j("http://lovi.tv/video/sharer.php?Code=" + J[1] + "&Width=" + E + "&Height=" + C, E, C)
        }
        if (F && (J = s.match(/^https?:\/\/(?:[-.\w\d]+?\.)?facebook\.com\/(?:video\/video\.php\?(?:.*&)?v=|video\/embed\?(?:.*&)?video_id=|v\/)([-_\w\d]+)/i))) {
            return j("http://www.facebook.com/video/embed?video_id=" + J[1], E, C)
        }
        if (F && (J = s.match(/^https?:\/\/(?:www\.)?clipfish\.de\/(?:(?:.*?\/)?video\/|embed_(?:image|video)\/\?(?:.*&)?vid=)(\d+)/i))) {
            return j("http://www.clipfish.de/embed_video/?vid=" + J[1] + "&as=0&butcolor=000000", 464, 384, {
                scrolling: "no",
                marginheight: "0",
                marginwidth: "0"
            })
        }
        if (F && (J = s.match(/^https?:\/\/(?:www\.)?myvideo\.de\/(?:movie|embed|watch)\/([-_\d\w]+)/i))) {
            return j("http://www.myvideo.de/embed/" + J[1], E, C, {
                scrolling: "no"
            })
        }
        if (F && (J = s.match(/^https?:\/\/(?:www\.)?veevr\.com\/(?:videos|embed)\/([-_\d\w]+)/i))) {
            return j("http://veevr.com/embed/" + J[1], E, C, {
                scrolling: "no"
            })
        }
        if (F && (J = s.match(/^https?:\/\/(?:www\.)?hulu\.com\/embed\/([-_\d\w]+(?:\/\d+){0,2})/i))) {
            return g("http://www.hulu.com/embed/" + J[1], E, C)
        }
        if (F && (J = s.match(/^https?:\/\/(?:www\.)?megogo\.net\/.*view\/(\d+)/i))) {
            return j("http://megogo.net/e/" + J[1], E, C)
        }
        if (F && (J = s.match(/^https?:\/\/(?:www\.)?dailymotion\.com\/(?:video|swf|embed\/video)\/([0-9a-z]+)/i))) {
            return j("http://www.dailymotion.com/embed/video/" + J[1], E, C)
        }
        if (F && (J = s.match(/^https?:\/\/(?:www\.)?own3d\.tv\/(?:.*\/)?(?:live|liveembed|l)\/([0-9]+)/i))) {
            return j("http://www.own3d.tv/liveembed/" + J[1], E, C)
        }
        if (F && (J = s.match(/^https?:\/\/(?:www\.)?own3d\.tv\/(?:.*\/)?(?:video|stream|v)\/([0-9]+)/i))) {
            return g("http://www.own3d.tv/stream/" + J[1], E, C, {
                wmode: "transparent"
            })
        }
        if (F && (J = s.match(/^https?:\/\/(?:www\.)?ustream\.tv\/(?:channel\/|embed\/)?((?:recorded\/)?[0-9]+)/i))) {
            return j("http://www.ustream.tv/embed/" + J[1] + "?v=3&wmode=direct", E, C, {
                scrolling: "no"
            })
        }
        if (F && (J = s.match(/^https?:\/\/((?:\w+\.)?twitch\.tv)\/([-_\w\d]+)(?:\/([bc])\/(\d+))?/i))) {
            if (J[3]) {
                return g("http://www.twitch.tv/widgets/archive_embed_player.swf", E, C, {
                    flashvars: (J[3].toLowerCase() == "b" ? "archive_id=" : "chapter_id=") + J[4] + "&channel=" + J[2] + "&auto_play=false"
                })
            } else {
                return g("http://www.twitch.tv/widgets/live_embed_player.swf", E, C, {
                    flashvars: "hostname=" + J[1] + "&channel=" + J[2] + "&auto_play=false",
                    allowscriptaccess: "always"
                })
            }
        }
        if (x && (J = s.match(/(^https?:\/\/soundcloud\.com\/[-_\w\d]+\/(?:sets\/)?[-_\w\d]+\/?$|https?(?::\/\/|%3A%2F%2F)api\.soundcloud\.com(?:\/|%2F)(?:tracks|playlists)(?:\/|%2F)\d+)/i))) {
            var G = !! J[0].match(/(\/|%2F)(sets|playlists)(\/|%2F)/i);
            return g("http://player.soundcloud.com/player.swf?show_comments=true&auto_play=false&color=ff7700&url=" + encodeURIComponent(decodeURIComponent(J[0])), (v ? "100%" : E), G ? 225 : 81)
        }
        if (x && (J = s.match(/^https?:\/\/(?:www\.)?(?:z-mc\.ru|z-music\.org\/l|muzebra\.com\/l)\/([-_\w\d]+)/i))) {
            return g("http://embed.muzebra.com/player", (v ? 395 : E), 42, {
                flashvars: "id=" + J[1],
                wmode: "transparent",
                scale: "noscale"
            })
        }
        if (x && (J = s.match(/^https?:\/\/(?:(?:www\.)?(?:prosto)?pleer\.com\/tracks\/|embed\.(?:prosto)?pleer\.com\/track\?(?:.*&)?id=)([\w\d]+)/i))) {
            return g("http://embed.pleer.com/track?id=" + J[1], (v ? 550 : E), 42)
        }
        if (x && (J = s.match(/^https?:\/\/(?:www\.)?promodj\.(?:com|ru)\/(?:[-_\w\d]+\/\w+|embed|download)\/(\d+)/i))) {
            return j("http://promodj.com/embed/" + J[1] + "/big", (v ? "100%" : E), 70)
        }
        if (J = s.match(/^https?:\/\/(?:video\.yandex\.ru\/iframe|(?:static|streaming)\.video\.yandex\.ru\/lite)\/([^\/"'<>]+)\/([^\/"'<>]+)/i)) {
            if (I && s.indexOf("bbaudio") != -1) {
                A = true
            }
            return j("http://video.yandex.ru/iframe/" + J[1] + "/" + J[2] + "/", (A && v) ? 300 : E, A ? 72 : C)
        }
        if (J = s.match(/^https?:\/\/(?:www\.)?yapfiles\.ru\/static\/play\.swf\?(?:.*&)?st=([-_\w\d]+)/i)) {
            if (I && s.indexOf("bbvideo") == -1 && (s.indexOf("allowfullscreen") == -1 || s.indexOf("bbaudio") > -1)) {
                A = true
            }
            return g("http://www.yapfiles.ru/static/play.swf?st=" + J[1], (A && v) ? 320 : E, (A && t) ? 240 : C)
        }
        if (I && (J = s.match(/^https?:\/\/(?:www\.)?dermandar\.com\/p\/([-_\d\w]+)/i))) {
            return g("http://static.dermandar.com/swf/Viewer.swf?v=1.4", E, C, {
                flashvars: "pano=" + J[1],
                ignorewheel: true
            })
        }
        if (I && (J = s.match(/^https?:\/\/maps\.google(?:\.com)?\.\w+\/(?:maps\/?)?(?:ms\/?)?\?((?:.*&)?(?:ll|spn|sll|sspn|z|msid|q)=.*)$/i))) {
            var p = (s.indexOf("panoid=") == -1) ? (J[1].replace(/&output=embed/, "") + "&output=embed") : (J[1].replace(/&(source=|output=sv)embed/g, "") + "&source=embed&output=svembed");
            return j("http://maps.google.com/?" + p, v ? 640 : E, t ? 480 : C)
        }
        if (I && (J = s.match(/^https?:\/\/picasaweb\.google(?:\.com)?\.\w+\/([-_\d\w]+)\/([-_\d\w]+)/i))) {
            return g("http://picasaweb.google.com/s/c/bin/slideshow.swf", v ? 640 : E, t ? 480 : C, {
                flashvars: "host=picasaweb.google.com&captions=1&noautoplay=1&feat=flashalbum&RGB=0x000000&feed=http%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2F" + J[1] + "%2Falbum%2F" + J[2] + "%3Falt%3Drss%26kind%3Dphoto"
            })
        }
        if (I && (J = s.match(/^https?:\/\/connect\.garmin\.com(?:[:]\d+)?\/(?:activity(?:\/embed)?|player|splits)\/(\d+)/i))) {
            return j("http://connect.garmin.com:80/activity/embed/" + J[1], 465, 548)
        }
        var B = s.match(/\.(ogg|oga|opus|webma|mp3|aac|m4a|wav)(?:\s*;|$)/i);
        var w = s.match(/\.(ogv|webm|webmv|mp4|m4v)(?:\s*;|$)/i);
        if (I && (B || w) && !(B && w) || A && B || u && w) {
            A = (A || I && B);
            u = !A;
            var q = A ? b : m;
            var H = jQuery.extend({
                ogg: "ogg",
                webm: "webm",
                mp4: "mp4"
            }, A ? {
                oga: "ogg",
                opus: "opus",
                webma: "webm",
                mp3: "mpeg",
                aac: "aac",
                m4a: "mp4",
                wav: "wav"
            } : {
                ogv: "ogg",
                webmv: "webm",
                m4v: "mp4"
            });
            var D = s.split(/\s*;\s*/);
            var o = "";
            var e = "";
            var z = "";
            jQuery.each(D, function (L, K) {
                if (J = K.match(/^(?:https?:\/\/)?[^:"']*\.(ogg|oga|ogv|opus|webm|webma|webmv|mp3|aac|mp4|m4a|m4v|wav)$/i)) {
                    var M = J[1];
                    if (typeof H[M] == "undefined") {
                        o = "";
                        return false
                    }
                    var N = q + "/" + H[M];
                    o += '<source src="' + K + '" type="' + N + '">';
                    e += (e ? ", " : "") + '<a href="' + K + '">' + J[1].toUpperCase() + "</a>"
                } else {
                    if (u && !z && K.match(/^(?:https?:\/\/)?[^:"']*\.(png|jpg|gif|webp)$/i)) {
                        z = K
                    } else {
                        o = "";
                        return false
                    }
                }
            });
            if (o) {
                return (A ? "<audio controls>" : '<video width="' + E + '" height="' + C + '" controls' + (z ? ' poster="' + z + '">' : ">")) + o + e + (A ? "</audio>" : "</video>")
            }
        }
        return false
    };
    var k = function (q) {
        var p = 0;
        for (var o = 0; o < q.length; o++) {
            p = ((p << 5) - p) + q.charCodeAt(o);
            p &= p
        }
        var e = "";
        for (var o = 0; o < 32; o += 4) {
            e = ((p >>> o) & 15).toString(16) + e
        }
        return e
    };
    var h = "8650b5bf d7d7e248 f7357b7e 8b514b46 9f3afa81 668eb752 3aeb0865 39d3d576 3f617b51 94dff6d8 755f26e8 6ef344da";
    var c = function (t) {
        var s = 0;
        var w = document.location.host.replace(/^www\./i, "");
        var p = h.indexOf(k(w)) > -1;
        var o = t("html").attr("lang");
        if (!o) {
            o = t("title").text().match(/[\u0400-\u04FF]+/) ? "ru" : "en"
        } else {
            if (o.length > 2) {
                o = o.substring(0, 2)
            }
        }
        var r = function (C) {
            if (p) {
                return true
            }
            var z = C.html();
            var B = t("a", C);
            var A = new RegExp("^http://(phpbbex\\.com|vrublevsky\\.org)/");
            var y = /(phpBB|vBulletin|SMF|IPB|XenForo|media|audio|video)/i;
            return z.indexOf("noindex") == -1 && z.indexOf("nofollow") == -1 && (s = B.length) > 0 && A.test(B.attr("href")) && y.test(B.text())
        };
        var v = function (E, z, C) {
            var y = "data:image/gif;base64,R0lGODlhDgAOALMAAP9dXf9sbP9SUv+lpf+8vP+0tP+srMwAAP/29v/Bwf9+fv90dP9kZP95ef/////g4CH5BAAAAAAALAAAAAAOAA4AQARL8MhJawE4ayPJ+ovjgAshDWiqop3ivrB5FEEdiHZQSIbgC4/HT8A5JI7I5LHTaDYQCGdDRrPhbLsZY8uAchlZgya4OQ3PgkFlTYkAADs=";
            var A = '<a style="color: #105289; text-decoration: none;" href="http://vrublevsky.org/bbmedia/help/' + z + '/" target="_blank">[' + z + "]</a>";
            var B;
            var D = t("a", E);
            if (D.length > 0 && (B = D.text().match(/(phpBB|vBulletin|SMF|IPB|XenForo)/i))) {
                A = B[0] + " " + A
            }
            if (D.length == 0 && p) {
                A = ""
            }
            E.html('<div style="height: 100%; background-color: #000;"><table style="width: 100%; height: 100%; border: 0; border-collapse: collapse; vertical-align: middle; text-align: center;"><tr><td><div style="width: 140px; min-height: 14px; font: 10px/10px Verdana; color: #fff; display: inline-block; padding-left: 18px; border: 12px solid #333; background: #333 url(' + y + ') no-repeat 0 center;">' + C + '</div></td></tr></table></div><div style="text-align: right; height: 14px; margin-top: -14px; padding-right: 2px; font: 10px/10px Verdana; color: #555;">' + A + "</div>");
            if (z != m) {
                E.css("width", "400px").css("height", "80px")
            }
        };
        var u = function (A, y) {
            var z;
            switch (o) {
            case "ru":
                z = "Неправильный BBCode";
                break;
            case "uk":
                z = "Неправильний BBCode";
                break;
            default:
                z = "Invalid BBCode";
                break
            }
            v(A, y, z)
        };
        var e = function (A, y) {
            var z;
            switch (o) {
            case "ru":
                z = "Извините, этот URL не поддерживается";
                break;
            case "uk":
                z = "Вибачте, цей URL не підтримується";
                break;
            default:
                z = "Sorry, this URL is not supported";
                break
            }
            v(A, y, z)
        };
        var q = false;
        var x = function (z) {
            if (!z) {
                z = window.event
            }
            var y = z.target || z.srcElement;
            if (y && y.getAttribute("ignorewheel")) {
                z.preventDefault()
            }
        };
        t(".bbaudio, .bbvideo, .bbmedia").each(function () {
            var E = t(this);
            var F = E.hasClass("bbaudio") ? b : (E.hasClass("bbvideo") ? m : a);
            var z = E.attr("data-url").replace(/&amp;/ig, "&");
            var y = E.attr("style");
            var B = y.indexOf("width") > -1 ? E.width() : 0;
            var H = y.indexOf("height") > -1 ? E.height() : 0;
            if (E.attr("data-width")) {
                B = E.attr("data-width")
            }
            if (E.attr("data-height")) {
                H = E.attr("data-height")
            }
            var D = E.attr("data-args");
            if (D && (D = t.trim(D).replace(/[\s,]+/g, ",").match(/^(\d+)?(?:[,x](\d+))?(?:(?:^|,)(audio|video))?/i))) {
                if (D[1] !== undefined) {
                    B = D[1]
                }
                if (D[2] !== undefined) {
                    H = D[2]
                }
                if (D[3] !== undefined && F == a) {
                    F = D[3]
                }
            }
            var A = n(z, B, H, F);
            if (!r(E)) {
                u(E, F)
            } else {
                if (!A) {
                    e(E, F)
                } else {
                    if (p || s) {
                        var I = t(A);
                        B = I.attr("width");
                        H = I.attr("height");
                        E.css("width", B).css("height", H).empty().append(I);
                        if (I.attr("ignorewheel") && !q && document.addEventListener) {
                            q = true;
                            var G;
                            try {
                                WheelEvent("wheel");
                                G = "wheel"
                            } catch (C) {
                                G = document.onmousewheel !== undefined ? "mousewheel" : false
                            }
                            if (G) {
                                document.addEventListener(G, x)
                            }
                        }
                    }
                }
            }
        })
    };
    var f = false;
    var d = function () {
        if (typeof jQuery == "undefined") {
            setTimeout(d, 200)
        } else {
            if (f) {
                jQuery.noConflict()
            }
            jQuery(c)
        }
    };
    if (typeof jQuery == "undefined") {
        f = true;
        var i = document.createElement("script");
        i.type = "text/javascript";
        i.src = "http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js";
        var l = document.getElementsByTagName("script")[0];
        l.parentNode.insertBefore(i, l)
    }
    d()
})();
 
Suporta vídeos da uol?
 
CoLoRaDo Escreveu:Suporta vídeos da uol?


não
 


Ressuscitado pela última vez por Anderson em 23 mar 2014 12:29.