Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Add a little ajax to the top menu bar #102757

    I added

    #5DayAvgPanel .info, #5DayAvgPanel #5DayAvg {

    display: inline-block;

    }

    to the Custom CSS but to no avail. Any other thoughts?

    in reply to: Add a little ajax to the top menu bar #102756

    Ok. Finally got it to post. But the look of the top menu/cart banner is really messed up now. https://litebit.co

    I’d like this message and the number to fit in the 40px height of the Propulsion theme. The blue bar is distracting and the number is below it and off to the left.

    Any advice?

    in reply to: Add a little ajax to the top menu bar #102754

    I think I can add this:

    <div id=”5DayAvgPanel”><div class=”info”>Prices based on Litecoin 5-day Moving Average:</div><div id=”5DayAvg”></div></div>

    to the template… only… where would that go? I don’t see how it can be in appearances/menu. does it go in custom.css or functions.php or what?

    Cheers,

    Paul

    in reply to: Add a little ajax to the top menu bar #102753

    Ok, sounds good. A lot of this is new to me.

    I found my avia.js and the document.ready function

    jQuery(document).ready(function(){

    //So can I add this whole thing?

    var sourceURL = “https://docs.google.com/spreadsheet/pub?key=0AuPBngUCEhapdGdfN3BRV1hJVVQwQ3JyS3prdGNPNkE&single=true&gid=0&range=K16&output=csv”;

    var targetElement = “#5DayAvg”; <div id=”5DayAvg”>Calculating</div>

    $.get(sourceURL,

    function(data) {

    console.log(“data is: “+data);

    $(targetElement).text(data);

    }


    Is that all I need to do or do I need to create a “custom link” in Appearance/Menus on my sub menu? Like I said, I’m still learning some of the coding terms and what they do.

    All the rest of my options in appearance/menus is just for a Link, Quote or Gallery. I can’t figure out where I can add special text “Prices based on Litecoin 5-day Moving Average: (that_value)” that will display the (valid) value the code sends me from the avia.js file. Does that need to go in my avia.js file as well?

    Thanks for helping!

Viewing 4 posts - 1 through 4 (of 4 total)