Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 17 09:33
    User @bjorno43 unbanned @linkin-park
  • Jun 20 21:19
    @bjorno43 banned @shenerd140
  • May 10 09:13
    @bjorno43 banned @zhaokunhaoa
  • Apr 25 17:12
    @mstellaluna banned @cmal
  • Apr 01 18:11
    thecodingaviator labeled #31179
  • Apr 01 18:11
    thecodingaviator labeled #31179
  • Apr 01 18:09
    thecodingaviator commented #31179
  • Apr 01 18:09
    thecodingaviator labeled #31182
  • Apr 01 18:09
    thecodingaviator labeled #31182
  • Apr 01 18:07
    thecodingaviator commented #31182
  • Apr 01 18:07
    thecodingaviator labeled #31190
  • Apr 01 18:07
    thecodingaviator labeled #31190
  • Apr 01 18:07
    thecodingaviator commented #31190
  • Apr 01 18:05
    thecodingaviator commented #31157
  • Apr 01 18:04

    thecodingaviator on master

    remove A (#31157) (compare)

  • Apr 01 18:04
    thecodingaviator closed #31157
  • Apr 01 18:04
    thecodingaviator closed #33788
  • Apr 01 18:04
    thecodingaviator commented #33788
  • Apr 01 18:02
    thecodingaviator closed #31059
  • Apr 01 18:02
    thecodingaviator commented #31059
Chris Juchtmans
@kjuchtmans
...its the sort of reading material for long winter evenings, I admit
Simon Cordova
@gbsimon87
Hey all!
Gots a quick question...
I've got this website for which I can't seem to change the placeholder value at all for some reason, can anyone take a look?
Tiago Correia
@tiagocorreiaalmeida
sure
Simon Cordova
@gbsimon87
@tiagocorreiaalmeida
Thanks buddy...
It's at cardfactory.co.uk
The search bar up top, here's the selector...
document.querySelector("#searchText")
$("#searchText")
CamperBot
@camperbot
api offline
gbsimon87 sends brownie points to @tiagocorreiaalmeida :sparkles: :thumbsup: :sparkles:
Simon Cordova
@gbsimon87
I need to change it with javascript though
Tiago Correia
@tiagocorreiaalmeida
this part?
image.png
Simon Cordova
@gbsimon87
Yep :)
Tiago Correia
@tiagocorreiaalmeida
what you wanna do to it?
Simon Cordova
@gbsimon87
So instead of "Search Cards, "Gifts & Party" I need it to show "Search for items"
Tiago Correia
@tiagocorreiaalmeida
is it ok to use jquery?
Simon Cordova
@gbsimon87
yep
Tiago Correia
@tiagocorreiaalmeida
I think you can do something line
$("#searchText").attr("placeholder","blabla");
letm e try
:D
image.png
Simon Cordova
@gbsimon87
Yeah, it changes it in the HTML, but I can't seem to change it in the actual screen
Tiago Correia
@tiagocorreiaalmeida
it does?
are you the owner of the website?
Simon Cordova
@gbsimon87
Try it in mobile view
Tiago Correia
@tiagocorreiaalmeida
just a quick question why not change it in the html?
and will try to look for some workaround to this
      $("#searchText").attr("placeholder", "Search occassion, recipient, card or gift");
with this
defiend
gonna be hard
to overwrite it
Simon Cordova
@gbsimon87

I appreciate it.

I don't have access to the HTML, I can only inject Javascript

Tiago Correia
@tiagocorreiaalmeida
 myCode: function() {

            var $ = window.jQuery;

            $("#headerContainer > div.row.visible-xs > div").addClass("col-xs-4").removeClass("col-xs-1").css("width", "25%");

            $("#headerContainer > div.row.visible-xs > div > div").css("width", "100%");

            $("#headerContainer button").after("<span></span>");
            $("#headerContainer > div.row.visible-xs > div:nth-child(1) > div > span").text("Menu");
            $("#headerContainer > div.row.visible-xs > div:nth-child(3) > div > span").text("Stores");
            $("#headerContainer > div.row.visible-xs > div:nth-child(4) > div > span").text("Login");
            $("#headerContainer > div.row.visible-xs > div:nth-child(5) > div > span").text("Basket");

            $("#header > .visible-xs.visible-sm").insertAfter("#headerContainer");

            $("#headerContainer, #header > .visible-xs.visible-sm").wrapAll("<div class='reNavDiv'></div>");

            $("#headerContainer > div:nth-child(1)").prependTo("#header");

            $("#header > .row").wrap("<div class='reLogoDiv container'></div>");

            $("#searchContainer").removeClass("container");

            $("#searchText").attr("placeholder", "Search occassion, recipient, card or gift");

            $("#header > div:nth-child(6)").insertAfter(".reNavDiv");

            $("#lister-small-menu").appendTo(".reNavDiv");

            $(".navcontainer:not(.center)").appendTo(".reNavDiv");

            $("#searchContainer").removeClass("collapse");

            $("#headerContainer > div > div").on("click", function() {
                $(this).find("button").click();
            });

        }
can't you change this js file?
Simon Cordova
@gbsimon87
That's my JS file lol
Tiago Correia
@tiagocorreiaalmeida
there's youir propbl├žem
     $("#searchText").attr("placeholder", "Search occassion, recipient, card or gift");
Simon Cordova
@gbsimon87
Why's that?
Tiago Correia
@tiagocorreiaalmeida
change this
and update the js file to the website
then let me know
Simon Cordova
@gbsimon87
Oh my I didn't event realise I had that in there, let me try it :)
I do appreciate the help btw
Tiago Correia
@tiagocorreiaalmeida
np
Simon Cordova
@gbsimon87
Damn, that didn't quite work
Only for the desktop
Morchid Chellali
@Morched23MJ
In the Tic Tac Toe, I made a return button as an icon, to go back, and change to 1/2 players, or change xo choice, when the game finishes between two players, I show the winner, if there is, else draw. So, at this point, that icon, keeps fading in/out, for some reason. :l here is the pen: https://codepen.io/Morched23MJ/pen/VzRQZM?editors=0010
Tiago Correia
@tiagocorreiaalmeida
@gbsimon87 can you just update the js file in the server or you only update everything at the end?
nm you allready did
Simon Cordova
@gbsimon87
Yeah I did to 123, it works well on desktop but not on mobile