Subversion Repositories SmartDukaan

Rev

Rev 25191 | Rev 25196 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 25191 Rev 25195
Line 620... Line 620...
620
						</div>
620
						</div>
621
						#end
621
						#end
622
					</div>
622
					</div>
623
				</div>
623
				</div>
624
				<div class="col-lg-6">
624
				<div class="col-lg-6">
625
					<div class="row col-lg-10">
625
					<div class="row col-lg-9">
626
						<div class="info-box purple-bg">
626
						<div class="info-box purple-bg">
627
							<div class="col-lg-9">
627
							<div class="col-lg-9">
628
								<i class="fa fa-coins"></i>
628
								<i class="fa fa-coins"></i>
629
								<h3 style="margin-top:-2px;margin-bottom:12px"><strong>Investments</strong></h3>
629
								<h3 style="margin-top:-2px;margin-bottom:12px"><strong>Investments</strong></h3>
630
								<div class="row">
630
								<div class="row">
Line 650... Line 650...
650
										#end
650
										#end
651
									</div>
651
									</div>
652
								</div>
652
								</div>
653
							</div>
653
							</div>
654
							<div class="col-lg-3 row">
654
							<div class="col-lg-3 row">
655
								<canvas style="width:200%;margin:-50px 0 0 -50px;" id="gaugeElement"></canvas>
655
								canvas style="width:180%;margin:-40px 0 0 -40px;" id="gaugeElement"></canvas>
656
								<div class="title" style="margin-left:16px">Investometer</div>
656
								<div class="title" style="margin-left:16px">Investometer</div>
657
							</div>
657
							</div>
658
						</div>
658
						</div>
659
					</div>
659
					</div>
660
				</div>
660
				</div>
Line 837... Line 837...
837
	
837
	
838
	hasGift=$hasGift;
838
	hasGift=$hasGift;
839
	giftItemId = $giftItemId;
839
	giftItemId = $giftItemId;
840
 	function initGauge(){
840
 	function initGauge(){
841
		monthDays=$monthDays;
841
		monthDays=$monthDays;
-
 
842
		dayOfMonth = $dayOfMonth;
842
		var opts = {
843
		var opts = {
843
		  angle: 0, // The span of the gauge arc
844
		  angle: 0, // The span of the gauge arc
844
		  lineWidth: 0.1, // The line thickness
845
		  lineWidth: 0.1, // The line thickness
845
		  radiusScale: 0.5, // Relative radius
846
		  radiusScale: 0.5, // Relative radius
846
		  pointer: {
847
		  pointer: {
Line 866... Line 867...
866
		var target = document.getElementById('gaugeElement'); // your canvas element
867
		var target = document.getElementById('gaugeElement'); // your canvas element
867
		var gauge = new Gauge(target).setOptions(opts); // create sexy gauge!
868
		var gauge = new Gauge(target).setOptions(opts); // create sexy gauge!
868
		gauge.maxValue = 1; // set max gauge value
869
		gauge.maxValue = 1; // set max gauge value
869
		gauge.setMinValue(0);  // Prefer setter over gauge.minValue = 0
870
		gauge.setMinValue(0);  // Prefer setter over gauge.minValue = 0
870
		gauge.animationSpeed = 32; // set animation speed (32 is default value)
871
		gauge.animationSpeed = 32; // set animation speed (32 is default value)
871
		gauge.set($investments.get("okDays")); // set actual value
872
		gauge.set($investments.get("okDays")/$dayOfMonth); // set actual value
872
		
873
		
873
	}
874
	}
874
	$(function(){
875
	$(function(){
875
	
876
	
876
		initGauge();
877
		initGauge();