Jump to content

reaganl

Member
  • Posts

    6
  • Joined

  • Last visited

Awards

This user doesn't have any awards

  1. EDIT: I just browsed around more and used quiz2input1.onclick=newF1 for it. it works!! Hi. I have a huge project due tonight and this is the last thing tripping me up. I know it's excessively messy and i could simplify it, but I don't have the time Anyways, the webpage responds to the initial call by pressing a button (id="buttonStart"). It then correctly displays the "Are you 18 or Older" next to the buttons "Yes" and "No". The problem is when I click on the buttons- nothing happens even though I added ".addEventListener()". First is the HTML that is being manipulated, next is the script I have inserted into the section element above it. This is a 101-level course so there is much I cannot incorporate. Any help is appreciated!! Google has been thoroughly exhausted. I've tried most variables in multiple different locations, either in or out of the code. Didn't make a difference. <article id="p2quiz2"><h3 id="answerTo">Can You Have Ice Cream?</h3> <div><p id="quizDialog">Click the Button to Start the Quiz!</p> </div> <input type="button" id="buttonStart" value="Click to Start" onclick="leavePlease();doiNeedThis1();doiNeedThis2();"><br><br></article> <script> var buttonRemove= document.getElementById("buttonStart"); var quiz2input1=document.createElement("INPUT"); var quiz2input2=document.createElement("INPUT"); var txt1=document.createTextNode("Yes"); var txt2=document.createTextNode("No"); function leavePlease(){ buttonRemove.remove(); document.getElementById("quizDialog").innerHTML="Are You 18 or Older?";} function doiNeedThis1(){ quiz2input1.appendChild(txt1); quiz2input1.setAttribute("type","button"); quiz2input1.setAttribute("value","Yes"); quiz2input1.setAttribute("id","yesA"); var dialogIDvar=document.getElementById("quizDialog"); dialogIDvar.appendChild(quiz2input1); } function doiNeedThis2(){ quiz2input2.appendChild(txt2); quiz2input2.setAttribute("type","button"); quiz2input2.setAttribute("value","No"); quiz2input2.setAttribute("id","noA"); var dialogIDvar=document.getElementById("quizDialog"); dialogIDvar.appendChild(quiz2input2); } document.getElementById("noA").addEventListener("click",newF2); document.getElementById("yesA").addEventListener("click",newF1); function newF1(){ var moreRemove1= document.getElementById("yesA"); var moreRemove2= document.getElementById("noA"); moreRemove1.remove(); moreRemove2.remove(); document.getElementById("answerTo").innerHTML="You Can!"; } function newF2(){ var moreRemove1= document.getElementById("yesA"); var moreRemove2= document.getElementById("noA"); var todayDate=new Date(); moreRemove1.remove(); moreRemove2.remove(); if(todayDate.getDay() == 6 || todayDate.getDay() === 0){ document.getElementById("answerTo").innerHTML="You Can! It is the weekend."; } else{ document.getElementById("answerTo").innerHTML="You Cannot. It is not the weekend."; } } </script> another function i have trouble with is this but it's MUCH less urgent. It does not respond at all. Yes it is asking if the user loves my dog. I'm exhausted. <article id="p2quiz1"> <h3 id="doyouLike">Do You Like Nicky?</h3> <p><img src="nickycsce.PNG" width="510" height="370" alt="Nicky2"></p> <form> <input type="radio" id="NickyYes" name="Opinion" value="Yes"> <label for="NickyYes">Yes</label><br> <input type="radio" id="NickyAbs" name="Opinion" value="Absolutely"> <label for="NickyAbs">Absolutely</label><br> <input type="button" value="Finished" onclick="goodChoice()"> <script> var yesS= document.getElementById("NickyYes"); var absS= document.getElementById("NickyAbs"); function goodChoice(){ if(yesS.checked= true;){ document.getElementById("dpyouLike").innerHTML="You could have been more Enthusiastic" }; else if (absS.checked = true){ document.getElementById("doyouLike").innerHTML="Good Choice." }; else{ document.getElementById("doyouLike").innerHTML="wtf"; } } </script> </form> </article>
  2. Last year I purchased the prebuilt Powerspec G354 from Microcenter and have been loving it. I’ve officially outgrown the 500gb SSD included and purchased a Seagate Barracuda 1TB 3.5” HDD. Today the HDD arrived and I went to open my desktop to install it when I realized there’s no tray/anything else that I could install onto the drive itself to secure it in place. I bought the computer open box so it may have been left out? But the thing is- the drive fits perfectly without a tray. I don’t want to install it without support and need it later, but I do want to know if I should schedule an appointment at my microcenter this afternoon or install without a tray (which sounds weird to ask). Included below are pictures of the drive bay and the hdd fitting. Because this is prebuilt, I do not know the case name- Powerspec is good at hiding that. Thanks in advance! Edit: The tabs on the left side fit perfectly into the middle screw spot on the drive
  3. Okay thank you. I'll try and bring it to an area where I know the ethernet works well and test it there. I'm glad I got another opinion.
  4. I'm concerned about the health of my computer. I bought my Powerspec G354 (specs below) as an open box from microcenter in May 2019 where I had the store boot the computer up before I took it home. When I got home I performed a userbenchmark test and got these results: https://www.userbenchmark.com/UserRun/17163166 I have been able to run Overwatch on medium graphics and 100% render (I prefer higher fps) and can run the game at 300fps consistently but cap it at 240 for my monitor. Besides a few network disconnects caused by the internet in my apartment building (student oriented apartment living, internet provided, using ethernet,) my computer has run fine until about a month ago where I started noticing lag while playing Final Fantasy XIV Online, mostly while in a dungeon that has many people acting quickly at once. Yesterday I spent 20 minutes freezing and then watching the other 23 people in my raid speed by, but was able to communicate in text chat. I provided these details to my friend in IT and he said he believed it to be a SSD problem (WD Blue m.2, 500GB) after I said that moving to my hotspot did not fix the problem. Before I go and replace my boot drive, I'd like to get a second, third, fourth, etc. opinion. This is my userbenchmark from this morning: https://www.userbenchmark.com/UserRun/21537925 where it shows my SSD working well and lots of background CPU activity (everything closed, most everything disabled on boot. I don't believe my BIOS is needed to be updated yet because this is mostly focused on lag in that game and slower loading times, but Specs: (if specific setting not listed, assume default). Windows 10 ASRock Z370 Gaming K6 (BIOS version 3.0, last updated 3/30/2018, newest is 4.20) Intel i7-8700K 2x8GB DDR4-3000MHz UNKNOWN BRAND RAM (Provided by Powerspec. Says "IEO FORZA") Zotac Nvidia GTX 1070Ti WD Blue m.2 500GB SSD boot drive (check userbenchmark for specific numbers if need be?) Coolermaster Masterwatt Lite 600W Thank you for reading, I'm just concerned about the vitality of my device and hope nothing drastic has to happen.
  5. So I already have a PC but now I'm on to changing my monitors!! Trying to keep it as flat-flat but can't do it easily with a budget. I'm going to buy two new monitors to put next to each other, VESA mounted and the stand connected to a desk. I know I'd like one 27" and one 24" and also know that one has to be 144hz and the other can be anything (so most likely 60hz). This will be for student apartments, so kinda showing I can't really stretch the budget on this. I've narrowed it down to choosing between 2 27" inch monitors and then 5 24"/21.5" monitors (I would like a 24 next to my 27 better, but price is price when it comes to college.) (All monitors are 1920 x 1080). I have a preference for VA over TN, but not a crazy intense preference. What we'll call monitor A27C is a $200 144hz, VA, CURVED (1800R), AOC monitor. The other 27 inch monitor will be called B27F and it is a $140 60Hz, VA, FLAT Acer monitor. So these monitors can be paired with the corresponding opposite features (A27C with a 60hz 24" monitor, B27F with a 144hz 24" monitor). That leaves us deciding between these pairs: 1) A27C $200 + A21F (21.5", 60Hz, Flat, TN, Acer) $80 = $280 2) A27C $200 + B21F (21.5" 60Hz, Flat, TN, AOC) $80 = $280 OR 3) B27F $140 + A24F (24", 144Hz, Flat, TN, Asus) $180 = $320 4) B27F $140 + B24F (24.5", 144Hz, Flat, TN, AOC) $200 = $340 5) B27F $140 + C24C (23.6", 144Hz, Curved 1500R, VA, AOC) $150 = $290 So, to be able to get the setup I want, I would be either doing option 3 or option 4. Sadly, those are the most expensive options (somehow, why can't curved monitors be more expensive for once...). The $60 difference between the lowest choice and highest choice could mean 10 late night Cook Out meals with friends, or the Logitech G Pro mouse I'd like. I currently have a non-mountable 27" 75Hz Dell monitor that I can use until I decide, but know (through working with a laptop for a while) that I like 2 monitors better. I could either suck it up and continue playing games at 75FPS instead of 144Hz and keep a good chunk of my money, or I could do this. If I do this I'll end up having $900 to spend for two semesters on eating out and personal wants, (groceries will be paid for yay!), or I could have ~$1200 to spend for two semesters. I've learned my lesson with Quality vs. Price and have been going for quality over price for a while now, but I think this is where I need to draw a line, when it comes to my budget for the year. So that leaves me with the choice and the question. I would really like two flat screens, but it looks like if I want that then I'll need to take out $40-$60 more than I would have to. So, if I want to save my money I now need to ask: how do curved monitors look sitting next to a flat one? (I will have the 144Hz in the middle of the desk regardless of size, and then the 60Hz angled to the left right next to it. I also will be using the 27" as a TV by swiveling the VESA mount towards my bed.) Thanks so much y'all!!
  6. INTRO THAT INVOLVES THE MONITORS I'M SHOPPING FOR AND WHY: So I'm buying two new monitors to put next to each other, VESA mounted and the stand connected to a desk. I know I'd like one 27" and one 24" and also know that one has to be 144hz and the other can be anything (so most likely 60hz). This will be for student apartments, so kinda showing I can't really stretch the budget on this. I've narrowed it down to choosing between 2 27" inch monitors and then 5 24"/21.5" monitors (I would like a 24 next to my 27 better, but price is price when it comes to college.) (All monitors are 1920 x 1080). I have a preference for VA over TN, but not a crazy intense preference. What we'll call monitor A27C is a $200 144hz, VA, CURVED (1800R), AOC monitor. The other 27 inch monitor will be called B27F and it is a $140 60Hz, VA, FLAT Acer monitor. So these monitors can be paired with the corresponding opposite features (A27C with a 60hz 24" monitor, B27F with a 144hz 24" monitor). That leaves us deciding between these pairs: 1) A27C $200 + A21F (21.5", 60Hz, Flat, TN, Acer) $80 = $280 2) A27C $200 + B21F (21.5" 60Hz, Flat, TN, AOC) $80 = $280 OR 3) B27F $140 + A24F (24", 144Hz, Flat, TN, Asus) $180 = $320 4) B27F $140 + B24F (24.5", 144Hz, Flat, TN, AOC) $200 = $340 5) B27F $140 + C24C (23.6", 144Hz, Curved, VA, AOC) $150 = $290 So, to be able to get the setup I want, I would be either doing option 3 or option 4. Sadly, those are the most expensive options (somehow, why can't curved monitors be more expensive for once...). The $60 difference between the lowest choice and highest choice could mean 10 late night Cook Out meals with friends, or the Logitech G Pro mouse I'd like. I currently have a non-mountable 27" 75Hz Dell monitor that I can use until I decide, but know (through working with a laptop for a while) that I like 2 monitors better. I could either suck it up and continue playing games at 75FPS instead of 144Hz and keep a good chunk of my money, or I could do this. If I do this I'll end up having $900 to spend for two semesters on eating out and personal wants, (groceries will be paid for ? ), or I could have ~$1200 to spend for two semesters. I've learned my lesson with Quality vs. Price and have been going for quality over price for a while now, but I think this is where I need to draw a line, when it comes to my budget for the year. So that leaves me with the choice and the question. I would really like two flat screens, but it looks like if I want that then I'll need to take out $40-$60 more than I would have to. So, if I want to save my money I now need to ask: how do curved monitors look sitting next to a flat one? (I will have the 144Hz in the middle of the desk regardless of size, and then the 60Hz angled to the left right next to it. I also will be using the 27" as a TV by swiveling the VESA mount towards my bed.) Thanks so much y'all!!
  7. I couldn't aim on console (Overwatch) so I said fuck it.
×