Alternatively, join us on Discord.

+-Recent Topics

Hosting an Interactive Google Doodle on a Site

Started by Jkolade936, March 29, 2016, 10:08:51 pm

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Jkolade936

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
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.

Unicorn

Couldn't you just embed an image with th link address?



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

Juju

Read Zarmina!
YUKI-CHAAAANNNN
In the beginning there was walrii. In the end there will be walrii. All hail our supreme leader :walrii: --Snektron



if you wanna throw money at me and/or CodeWalrus monthly it's here

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?

Juju


<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.
Read Zarmina!
YUKI-CHAAAANNNN
In the beginning there was walrii. In the end there will be walrii. All hail our supreme leader :walrii: --Snektron



if you wanna throw money at me and/or CodeWalrus monthly it's here

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  >.<

Jkolade936

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.
Does this qualify as a signature? 
The answer is "Sure."


Powered by EzPortal