[Solved] django, css working but js not working

You need jquery for bootstrap, also: <script src=”https://stackoverflow.com/questions/29545591/{{ STATIC_URL }}js/bootstrap.min.js” type=”text/javascript”></script> should be <script src=”https://stackoverflow.com/questions/29545591/{% static”js/bootstrap.min.js’ %}” type=”text/javascript”></script> or <script src=”https://stackoverflow.com/static/js/bootstrap.min.js” type=”text/javascript”> If you have STATIC_URL in context you also need to add a slash “https://stackoverflow.com/”, 8 solved django, css working but js not working

[Solved] Javascript uncaught syntaxerror unexpected identifier error

In this line htmlStr += ‘<a id=”searchResult’+i+'” href=”https://stackoverflow.com/questions/29555599/javascript:liveSearch(“+arrOfSuggestText[i]+’)” > ‘+arrOfSuggestText[i]+'</a>’; and concrete here ‘” href=”https://stackoverflow.com/questions/29555599/javascript:liveSearch(“+arrOfSuggestText[i]+’)” > ‘ you try create calling function, but if you see value of this string, for arrOfSuggestText[i] == ‘qwe’ you can see something like href=”https://stackoverflow.com/questions/29555599/javascript:liveSearch(qwe)” and browser raise error what you get on qwe. So you need just add quotes … Read more

[Solved] How to create checkbox looks like font-awesome glyphicon

You can do achieve this even without Javascript. #checkbox{ background:#2f8cab; display:inline-block; padding:15px 18px; border-radius:2px; position:relative; cursor:pointer; } #checkbox-element{ display:block; position:absolute; left:0; top:0; width:100%; height:100%; z-index:99999; opacity:0; } #checkbox>input[type=”checkbox”]+i{ color:rgba(255,255,255,0.2); // color 1 } #checkbox>input[type=”checkbox”]:checked+i{ color:#fff; //color 2 } And here’s the markup, <span id=”checkbox”> <input id=”checkbox-element” type=”checkbox”/> <i class=”glyphicon glyphicon-check”></i> </span> Have a look at … Read more

[Solved] CSS custom shape [closed]

This is a shape seemed to the shape you need, you have to make some tricks with the borders and transform, also you need use :after and :before selectors to build this kind of shapes. #diamond-shield { width: 0; height: 40; border: 50px solid transparent; border-bottom: 50px solid orange; position: relative; top: -10px; left: 250px; … Read more

[Solved] Html5 page structure issue

To start with, you need to contain your content with a width. Have an example! In this example I am giving the body a width the same as your logo image (939px). margin: 0 auto; will center the page. Your question is too broad to give you an exact solution. body{ margin: 0 auto; font-family: … Read more

[Solved] Toggle and give width to another DIV [closed]

$(‘.left-sidebar’).click(function(e){ var originalWidth = $(this).width(); $(this).animate({width: ‘0px’}, 400, linear, function(e){ $(this).hide(); }); $(‘.right-sidebar’).animate({width: originalWidth}, 400, linear); }); Assumptions: Left sidebar has class “left-sidebar”, right sidebar has class “right-sidebar”. The left sidebar needs to be hidden after it is animated. Explore .animate() for customization. 1 solved Toggle and give width to another DIV [closed]

[Solved] How to change a background depending on the current day [closed]

In your comments you said javascript would be ok, so here it is in javascript. This will do it for you: https://jsfiddle.net/4p18mxg9/5/ JAVASCRIPT function myFunction() { switch (new Date().getDay()) { case 0: day = “Sunday”; document.body.style.backgroundImage = “url(‘http://lorempixel.com/400/200/sports/1/’)”; break; case 1: day = “Monday”; document.body.style.backgroundImage = “url(‘http://lorempixel.com/400/200/sports/1/’)”; break; case 2: day = “Tuesday”; document.body.style.backgroundImage = … Read more

[Solved] jQuery css height not applying

The only logical reason for this is that jQuery(‘#main-content’) in your first line is not the actual jQuery object representation of the DOM element of your choice. You will have to figure that out yourself as to why things turn out this way. 1 solved jQuery css height not applying

[Solved] how to make responsive gallery [closed]

If you are using bootstrap then copy paste this code: <div class=”row”> <div class=”col-xs-6 col-md-3″><!–you can add more section like this–> <a href=”#” class=”thumbnail”> <img src=”…” alt=”…”> </a> </div> </div> This will work definitely for you. 6 solved how to make responsive gallery [closed]

[Solved] Gallery hover effect with button [closed]

From http://www.holajose.com/styles.css .overlay .view_button { position: absolute; left: 0; top: 102px; opacity: 0; height: 16px; width: 32px; border: 1px solid rgba(69,76,197,.63); -moz-border-radius: 6px; -webkit-border-radius: 6px; border-radius: 6px; -moz-background-clip: padding; -webkit-background-clip: padding-box; background-clip: padding-box; background-color: #5b63d9; -moz-box-shadow: 0 2px 2px rgba(0,0,0,.11), inset 0 1px 1px rgba(255,255,255,.27); -webkit-box-shadow: 0 2px 2px rgba(0,0,0,.11), inset 0 1px 1px rgba(255,255,255,.27); … Read more

[Solved] Simple jQuery fade in fade out image [closed]

This was the simplest I could get, its a circular gallery, it starts over when it reaches the end. Here is a fiddle: http://jsfiddle.net/KA4Zq/ var count = 1; setInterval(function() { count = ($(“.slideshow :nth-child(“+count+”)”).fadeOut().next().length == 0) ? 1 : count+1; $(“.slideshow :nth-child(“+count+”)”).fadeIn(); }, 2000); The only thing you should change is the 2000 value (2sec). … Read more