Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/t/h/thedom-HEAD/thedom/Social.py   thedom(Download)
    def _create(self, name=None, id=None, parent=None, html="", *kargs, **kwargs):
        Node._create(self, name, id, parent, *kargs, **kwargs)
        self.addScript('window.twttr = (function (d,s,id) {'
                       'var t, js, fjs = d.getElementsByTagName(s)[0];'
                       'if (d.getElementById(id)) return; js=d.createElement(s); js.id=id;'
    def _create(self, name=None, id=None, parent=None, html="", *kargs, **kwargs):
        Node._create(self, name, id, parent, *kargs, **kwargs)
        self.addScript("window.___gcfg = {lang:'en-US','parsetags':'explicit'};"
                       "(function() {var po = document.createElement('script');"
                       "po.type = 'text/javascript'; po.async = true;"