What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-02-27 06:40:12
javascript carousel
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> * {box-sizing: border-box} body {font-family: Verdana, sans-serif; margin:0} .mySlides {display: n... Add solution -
Javascript 2022-02-25 02:00:20
how to add carousel in javascript
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> * {box-sizing: border-box} body {font-family: Verdana, sans-serif; margin:0} .mySlides {display: n... Add solution -
Javascript 2022-01-30 23:55:43
url(image loacation) give a class
var basePath = 'mysite/images/'; $('a').each(function() { var className = $(this).attr('class'); className = className.replace(/[^f][^0-9]*/, '').replace(' ', ''); $(this).css('background-image', basePath + className + '.png'); }); Add solution -
Javascript 2021-11-12 09:36:11
jquery link click scroll
// Select all links with hashes $('a[href*="#"]') // Remove links that don't actually link to anything .not('[href="#"]') .not('[href="#0"]') .click(function(event) { // On-page links if ( location.pathn... Add solution -
C# 2021-11-10 23:16:07
get all classes that extend a class c#
//through reflection using System.Reflection; //as a reusable method/function Type[] GetInheritedClasses(Type MyType) { //if you want the abstract classes drop the !TheType.IsAbstract but it is probably to instance so its a good idea to keep it. ret... Add solution -
Javascript 2021-11-04 00:08:06
graphql upload express
//resolvers.js export default { Query: { usersActivation() { return 'Hello Wordl' } }, Mutation: { uploadFile: async (parent, { file }) => { const { filename, createReadStream } = await file.promise fileUpload({ filename, stream: cre... Add solution -
Javascript 2021-10-05 07:55:03
simple parallax button scrolling jquery codepen
/* jQuery codes for smooth scrolling. The following code is from https://css-tricks.com/snippets/jquery/smooth-scrolling/*/$(function() { $('a[href*=#]:not([href=#])').click(function() { if (location.pathname.replace(/^\//, '') == this.pathname.repl... Add solution