Jump to content

geekmonster

Members
  • Content Count

    5
  • Joined

  • Last visited

Community Reputation

0 Neutral

About geekmonster

  • Rank
    Newbie
  1. Hello I'm having a of a time getting my image element aligned in the top right corner of my web application and everything I try fails. at the top (head) of the page I'm using a navbar and below that I have an input group. I'm trying to float right an image (which is my school logo) but no matter what I do. I cant get it to sit nica and square where i want it. I provided a screen shoot of the problems I'm having and included is a code snippet. Can somebody please tell me WTH I'm doing wrong here? First part of code is NavBar and the second is input group. How would I set the logo by i
  2. Hello I'm trying to add a drag and drop event to my js/jquery code in which after my shape is rendered to the canvas I need to move the shape around by selecting it then dragging it into position. I'm not sure if I need to use jquery or just plain old javascript. I've been tinkering around with it but its not working for me. Can somebody give me a hint please? function drawCircle(){ var canvas = document.getElementById("myCanvas"); var ctx = canvas.getContext("2d"); ctx.beginPath(); ctx.arc(100, 75, 25, 0, 2 * Math.PI); ctx.stroke(); } function clearArea() { var c
  3. One more question, If I wanted to put this in a switch statement where I would only need one button do I need to eliminate the onclick functions in my HTML?
  4. This code was just working b4 I went to work and when I came back two of my function arent working now. The circle and Ellipse functions render to the canvas but the other 2 won't and I can't figure out why. Here's my code: function drawCircle(){ var canvas = document.getElementById("myCanvas"); var radius = document.getElementById("getRadius").value; var ctx = canvas.getContext("2d"); ctx.beginPath(); ctx.arc(100, 75, radius, 0, 2 * Math.PI); ctx.stroke(); } function clearArea(){ var canvas = document.getElementById("myCanvas"); var ctx = canvas.getContex
×
×
  • Create New...