Join us on Discord!
You can help CodeWalrus stay online by donating here.

Hosting an Interactive Google Doodle on a Site

Started by Dudeman313, March 29, 2016, 10:08:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dudeman313

I was wondering how to do this. Each doodle is an HTML file, but how would I put it on my site?
Here's my site block code:


<divz id="p473I"><!--NEW ID-->
   
    <div class="item portfolio" id="portfolio2">
   
    <div class="container">
   
    <div class="row margin-bottom-40">
   
    <div class="col-md-12">
   
    <p class="lead text-center editContent">
    See some of our work below<br>
                            Click "Content" above and then you can click here to edit this text.   
    </p>
   
    </div><!-- /.col-md-12 -->
   
    </div><!-- /.row -->
       
    <div class="row margin-bottom-20">
   
    <div class="col-md-3">
       
        <div class="col-md-3">
       
        <a href="">
        <img src="/page/images/portfolio2.jpg" class="img-rounded width-100" alt="" data-selector="img">
       
        </a>
           
    </div><!-- /.col-md-3 col -->
   
    <div class="col-md-3">
       
        <a href="">
        <img src="/page/images/portfolio3.jpg" class="img-rounded width-100" alt="" data-selector="img">
       
        </a>
           
    </div><!-- /.col-md-3 col -->
   
    <div class="col-md-3">
       
        <a href="">
        <img src="/page/images/portfolio4.jpg" class="img-rounded width-100" alt="" data-selector="img">
       
        </a>
           
    </div><!-- /.col-md-3 col -->
   
    </div><!-- /.row -->
   
    <div class="row margin-bottom-20">
   
    <div class="col-md-3">
       
        <a href="">
        <img src="/page/images/portfolio5.jpg" class="img-rounded width-100" alt="" data-selector="img">
       
        </a>
           
    </div><!-- /.col-md-3 col -->
   
    <div class="col-md-3">
       
        <a href="">
        <img src="/page/images/portfolio6.jpg" class="img-rounded width-100" alt="" data-selector="img">
       
        </a>
           
    </div><!-- /.col-md-3 col -->
   
    <div class="col-md-3">
       
        <a href="">
        <img src="/page/images/portfolio7.jpg" class="img-rounded width-100" alt="" data-selector="img">
       
        </a>
           
    </div><!-- /.col-md-3 col -->
   
    <div class="col-md-3">
       
        <a href="">
        <img src="/page/images/portfolio8.jpg" class="img-rounded width-100" alt="" data-selector="img">
       
        </a>
           
    </div><!-- /.col-md-3 col -->
   
    </div><!-- /.row -->
   
    </div><!-- /.container -->
   
    </div><!-- /.item -->
   
    <p align="right"><a href="#top" style="text-decoration:underline;">Top</a></p> <!--NEW ID-->
</div></divz>


How do I replace the pictures with doodles?
Like this one: http://www.google.com/logos/2015/ponyexpress/ponyexpress15.html?hl=en
  • Calculators owned: TI-84 PCE
  • Consoles, mobile devices and vintage computers owned: Android O Phone
Does this qualify as a signature? 
The answer is "Sure."


DJ Omnimaga

Can't you just point to the last URL instead of an image in the img tags? Also you would need to make sure that Google allows you or any other third-parties to hotlink to their doodle files. It's possible that they disabled hotlinking altogether, so even if you had valid code, then it might still not work.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Nintendo 64, Wii U

Unicorn

Couldn't you just embed an image with th link address?
  • Calculators owned: I own all of them: PICKACHUP TI 84+ CSE TI 83+ SE TI something something ??? ??? ??? ??? ???
  • Consoles, mobile devices and vintage computers owned: PICKACHUP ??? ??? ??? ??? ???



??? ??? ??? ??? ???

Yuki

  • Calculators owned: TI-83+ (dead?), Casio Prizm (also dead???)
  • Consoles, mobile devices and vintage computers owned: A lot
Read Zarmina!
YUKI-CHAAAANNNN
In the beginning there was walrii. In the end there will be walrii. All hail our supreme leader :walrii: --Snektron
[html][/html][html][/html]
[html][/html][html]

DJ Omnimaga

An iframe won't solve the issue I mentioned above if its content is not hosted on Google, though. I wonder if Google offers an API or something to embed their special logos on your own site?
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Nintendo 64, Wii U

Yuki


<iframe frameborder="0" src="https://www.google.com/logos/2015/ponyexpress/ponyexpress15.html?hl=en" width="656" height="380"></iframe>

Yeah, I think iframes do the job.
  • Calculators owned: TI-83+ (dead?), Casio Prizm (also dead???)
  • Consoles, mobile devices and vintage computers owned: A lot
Read Zarmina!
YUKI-CHAAAANNNN
In the beginning there was walrii. In the end there will be walrii. All hail our supreme leader :walrii: --Snektron
[html][/html][html][/html]
[html][/html][html]

DJ Omnimaga

Ah, that's good, then. Just make sure to not take remote/hotlinking for granted. You can probably put them on your site until they disable hotlinking (ticalc used to disallow hotlinking and what it did is that you couldn't link directly to zip files and if you used a screenshot on a forum it turned into ticalc.org logo). Some sites do that for bandwidth or copyrights.

EDIT: And darn, that game is hard  >.<
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Nintendo 64, Wii U

Dudeman313

Quote from: Juju on March 31, 2016, 12:41:48 AM
<iframe frameborder="0" src="https://www.google.com/logos/2015/ponyexpress/ponyexpress15.html?hl=en" width="656" height="380"></iframe>
<iframe frameborder="0" src="https://www.google.com/logos/2015/ponyexpress/ponyexpress15.html?hl=en" width="656" height="380"></iframe>

Yeah, I think iframes do the job.
Thanks, but while I was away, I realized I could use "Inspect Element" in Chrome, and then copy the "id="doodle-hero"" element and paste it directly into my page, which would generate the doodle and only the doodle. It's exactly the same as using the iframe, because the iframe is in the "doodle-hero" element wherever a doodle is hosted.

Quote from: DJ Omnimaga on March 31, 2016, 01:31:20 AM
Ah, that's good, then. Just make sure to not take remote/hotlinking for granted. You can probably put them on your site until they disable hotlinking (ticalc used to disallow hotlinking and what it did is that you couldn't link directly to zip files and if you used a screenshot on a forum it turned into ticalc.org logo). Some sites do that for bandwidth or copyrights.

EDIT: And darn, that game is hard  >.<
I credited all the doodles, so until then, I should be good. :)

It gets more difficult. :P  You should try the Doctor Who's 50th Anniversary doodle if you want to see hard.
  • Calculators owned: TI-84 PCE
  • Consoles, mobile devices and vintage computers owned: Android O Phone
Does this qualify as a signature? 
The answer is "Sure."


Powered by EzPortal