Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter ianeire

    (@ianeire)

    Hi Andrew,

    I didnt know it was against the terms of this forum to request some help with this. If I am out of line then this thread can of course be closed.

    Ian

    Thread Starter ianeire

    (@ianeire)

    I have and they are super slow with support. Thought I might get it quicker here!!

    Any ideas?

    Thanks

    Thread Starter ianeire

    (@ianeire)

    Ah ok, so replace all $ symbols with jQuery in the MainColContent as posted above into the header file? FIngers crossed!!

    Forum: Fixing WordPress
    In reply to: Nav Menu Buttons
    Thread Starter ianeire

    (@ianeire)

    Thanks very much for your help with this!!

    Forum: Fixing WordPress
    In reply to: Nav Menu Buttons
    Thread Starter ianeire

    (@ianeire)

    Thanks man, thats great! Any different styles I can try out, smaller rectangles etc.?

    Thread Starter ianeire

    (@ianeire)

    Hi,

    I have the site up now if you can have a look (at your leisure of course!!)

    Here’s the offending page;

    If you could tell me what I am doing wrong that would be great thanks!!

    Thread Starter ianeire

    (@ianeire)

    Site is not fully live at the moment, it will be a day or two if thats ok? I really appreciate your help withthis by the way!

    Thread Starter ianeire

    (@ianeire)

    Nope, still not working for at all. Have pasted the below section in the header.php file

    </div>
    					<div id="MainColContent">
    						<script type="text/javascript">
    
    	//
    	var cost_of_dryfire = new Number(740);
    	var number_of_shots_per_round = new Number(25)
    
    	//
    	var average_cartridge_cost = new Number(4.75);
    	var cost_per_cartridge = average_cartridge_cost/number_of_shots_per_round;
    
    	//
    	var average_clay_cost = new Number(5);
    	var cost_per_clay = average_clay_cost/number_of_shots_per_round;
    
    	//
    	var cost_per_shot = cost_per_cartridge+cost_per_clay
    	var cost_per_round = (cost_per_shot*number_of_shots_per_round)
    
    	$(document).ready
    	(
    		function()
    		{
    			//
    			$('#CostOfDryFire').html(cost_of_dryfire.toFixed(2));
    
    			//
    			$('#AverageNumberOfCartridges').html(number_of_shots_per_round.toString());
    			$('#AverageNumberOfClays').html(number_of_shots_per_round.toString());
    			$('#AverageNumberOfShots').html(number_of_shots_per_round.toString());
    
    			//
    			$('#AverageCartridgeCost').html(average_cartridge_cost.toFixed(2));
    			$('#AverageClayCost').html(average_clay_cost.toFixed(2));
    
    			//
    			$('#CostPerRound').html(cost_per_round.toFixed(2));
    
    			$('#Calculate').click
    			(
    				function()
    				{
    					var number_of_shots_per_day = new Number($('#Shots').val());
    					var number_of_rounds_per_day = number_of_shots_per_day/number_of_shots_per_round
    					var total_cost_per_day = number_of_rounds_per_day*cost_per_round
    					var break_even_time = cost_of_dryfire/total_cost_per_day
    
    					$('#Saving').html(break_even_time.toFixed(0)+" days!");
    				}
    			);
    
    			$('#Shots').keydown
    			(
    				function(e)
    				{
    					//Enter
    					if(e.keyCode == 13)
    					{
    						$('#Calculate').click();
    					}
    				}
    			)
    
    		}
    	)
    
    </script>

    Tried it without `</div>
    <div id=”MainColContent”>`
    too.

    Am I just being a total dumbass??

    Sorry for all the questions!

    Ian

    Thread Starter ianeire

    (@ianeire)

    No joy there, I copied this into header.php

    <!-- Third Party Files -->
            <script type="text/javascript" src="/scripts/jquery-1.6.2.min.js"></script>
    		<script type="text/javascript" src="/scripts/jquery-ui-1.8.19.custom.min.js"></script>
    		<link rel="stylesheet" type="text/css" href="/stylesheets/ui-lightness/jquery-ui-1.8.19.custom.css"/>
    		<script src="/scripts/jquery.colorbox-min.js"></script>
    		<link rel="stylesheet" href="/stylesheets/colorbox.css" />
    		<script src="/scripts/jquery.upgradebrowsers.min.js"></script>
    		<link rel="stylesheet" href="/stylesheets/jquery.upgradebrowsers.min.css" />
    
    		<!-- External Files -->
    		<script type="text/javascript" src="/scripts/dryfire.js"></script>
    		<link rel="stylesheet" type="text/css" href="/stylesheets/dryfire.css" />
    		<noscript><link rel="stylesheet" type="text/css" href="/stylesheets/noscript.css" /></noscript>

    Where am I going wrong now?

    Thanks,
    Ian

    Thread Starter ianeire

    (@ianeire)

    Hi vtxyzzy,

    Thanks for that, I am just trying to add this a page on the wordpress site, will I have to add this line in the editor somewhere? When I out it with the html above nothing is happening.

    Apologies for my lack of knowledge here!

    Ian

Viewing 10 replies - 1 through 10 (of 10 total)