Snippets Collections
$accordion-padding-y:                     1rem;
$accordion-padding-x:                     1.25rem;
$accordion-color:                         var(--#{$prefix}body-color);
$accordion-bg:                            var(--#{$prefix}body-bg);
$accordion-border-width:                  var(--#{$prefix}border-width);
$accordion-border-color:                  var(--#{$prefix}border-color);
$accordion-border-radius:                 var(--#{$prefix}border-radius);
$accordion-inner-border-radius:           subtract($accordion-border-radius, $accordion-border-width);

$accordion-body-padding-y:                $accordion-padding-y;
$accordion-body-padding-x:                $accordion-padding-x;

$accordion-button-padding-y:              $accordion-padding-y;
$accordion-button-padding-x:              $accordion-padding-x;
$accordion-button-color:                  var(--#{$prefix}body-color);
$accordion-button-bg:                     var(--#{$prefix}accordion-bg);
$accordion-transition:                    $btn-transition, border-radius .15s ease;
$accordion-button-active-bg:              var(--#{$prefix}primary-bg-subtle);
$accordion-button-active-color:           var(--#{$prefix}primary-text-emphasis);

$accordion-button-focus-border-color:     $input-focus-border-color;
$accordion-button-focus-box-shadow:       $btn-focus-box-shadow;

$accordion-icon-width:                    1.25rem;
$accordion-icon-color:                    $body-color;
$accordion-icon-active-color:             $primary-text-emphasis;
$accordion-icon-transition:               transform .2s ease-in-out;
$accordion-icon-transform:                rotate(-180deg);

$accordion-button-icon:         url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='#{$accordion-icon-color}'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>");
$accordion-button-active-icon:  url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='#{$accordion-icon-active-color}'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>");
--#{$prefix}accordion-color: #{$accordion-color};
--#{$prefix}accordion-bg: #{$accordion-bg};
--#{$prefix}accordion-transition: #{$accordion-transition};
--#{$prefix}accordion-border-color: #{$accordion-border-color};
--#{$prefix}accordion-border-width: #{$accordion-border-width};
--#{$prefix}accordion-border-radius: #{$accordion-border-radius};
--#{$prefix}accordion-inner-border-radius: #{$accordion-inner-border-radius};
--#{$prefix}accordion-btn-padding-x: #{$accordion-button-padding-x};
--#{$prefix}accordion-btn-padding-y: #{$accordion-button-padding-y};
--#{$prefix}accordion-btn-color: #{$accordion-button-color};
--#{$prefix}accordion-btn-bg: #{$accordion-button-bg};
--#{$prefix}accordion-btn-icon: #{escape-svg($accordion-button-icon)};
--#{$prefix}accordion-btn-icon-width: #{$accordion-icon-width};
--#{$prefix}accordion-btn-icon-transform: #{$accordion-icon-transform};
--#{$prefix}accordion-btn-icon-transition: #{$accordion-icon-transition};
--#{$prefix}accordion-btn-active-icon: #{escape-svg($accordion-button-active-icon)};
--#{$prefix}accordion-btn-focus-border-color: #{$accordion-button-focus-border-color};
--#{$prefix}accordion-btn-focus-box-shadow: #{$accordion-button-focus-box-shadow};
--#{$prefix}accordion-body-padding-x: #{$accordion-body-padding-x};
--#{$prefix}accordion-body-padding-y: #{$accordion-body-padding-y};
--#{$prefix}accordion-active-color: #{$accordion-button-active-color};
--#{$prefix}accordion-active-bg: #{$accordion-button-active-bg};
<div class="accordion accordion-flush" id="accordionFlushExample">
  <div class="accordion-item">
    <h2 class="accordion-header">
      <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#flush-collapseOne" aria-expanded="false" aria-controls="flush-collapseOne">
        Accordion Item #1
      </button>
    </h2>
    <div id="flush-collapseOne" class="accordion-collapse collapse" data-bs-parent="#accordionFlushExample">
      <div class="accordion-body">Placeholder content for this accordion, which is intended to demonstrate the <code>.accordion-flush</code> class. This is the first item's accordion body.</div>
    </div>
  </div>
  <div class="accordion-item">
    <h2 class="accordion-header">
      <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#flush-collapseTwo" aria-expanded="false" aria-controls="flush-collapseTwo">
        Accordion Item #2
      </button>
    </h2>
    <div id="flush-collapseTwo" class="accordion-collapse collapse" data-bs-parent="#accordionFlushExample">
      <div class="accordion-body">Placeholder content for this accordion, which is intended to demonstrate the <code>.accordion-flush</code> class. This is the second item's accordion body. Let's imagine this being filled with some actual content.</div>
    </div>
  </div>
  <div class="accordion-item">
    <h2 class="accordion-header">
      <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#flush-collapseThree" aria-expanded="false" aria-controls="flush-collapseThree">
        Accordion Item #3
      </button>
    </h2>
    <div id="flush-collapseThree" class="accordion-collapse collapse" data-bs-parent="#accordionFlushExample">
      <div class="accordion-body">Placeholder content for this accordion, which is intended to demonstrate the <code>.accordion-flush</code> class. This is the third item's accordion body. Nothing more exciting happening here in terms of content, but just filling up the space to make it look, at least at first glance, a bit more representative of how this would look in a real-world application.</div>
    </div>
  </div>
</div>
<div class="dropdown">
  <button class="btn btn-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
    Dropdown button
  </button>
  <ul class="dropdown-menu dropdown-menu-dark">
    <li><a class="dropdown-item active" href="#">Action</a></li>
    <li><a class="dropdown-item" href="#">Another action</a></li>
    <li><a class="dropdown-item" href="#">Something else here</a></li>
    <li><hr class="dropdown-divider"></li>
    <li><a class="dropdown-item" href="#">Separated link</a></li>
  </ul>
</div>
<!-- Large button groups (default and split) -->
<div class="btn-group">
  <button class="btn btn-secondary btn-lg dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
    Large button
  </button>
  <ul class="dropdown-menu">
    ...
  </ul>
</div>
<div class="btn-group">
  <button class="btn btn-secondary btn-lg" type="button">
    Large split button
  </button>
  <button type="button" class="btn btn-lg btn-secondary dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown" aria-expanded="false">
    <span class="visually-hidden">Toggle Dropdown</span>
  </button>
  <ul class="dropdown-menu">
    ...
  </ul>
</div>
<!-- Example single danger button -->
<div class="btn-group">
  <button type="button" class="btn btn-danger dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
    Action
  </button>
  <ul class="dropdown-menu">
    <li><a class="dropdown-item" href="#">Action</a></li>
    <li><a class="dropdown-item" href="#">Another action</a></li>
    <li><a class="dropdown-item" href="#">Something else here</a></li>
    <li><hr class="dropdown-divider"></li>
    <li><a class="dropdown-item" href="#">Separated link</a></li>
  </ul>
</div>
#include <stdio.h>
int main (void) {
    char L1 = 'i', L2 = 'n', L3 = 'C';
    printf ("Programming %c%c %c", L1, L2, L3);
    return 0;
}
/**

 * Allow SVG uploads for administrator users.

 *

 * @param array $upload_mimes Allowed mime types.

 *

 * @return mixed

 */

add_filter(

    'upload_mimes',

    function ( $upload_mimes ) {

        // By default, only administrator users are allowed to add SVGs.

        // To enable more user types edit or comment the lines below but beware of

        // the security risks if you allow any user to upload SVG files.

        if ( ! current_user_can( 'administrator' ) ) {

            return $upload_mimes;

        }

​

        $upload_mimes['svg']  = 'image/svg+xml';

        $upload_mimes['svgz'] = 'image/svg+xml';

​

        return $upload_mimes;
The transformation of enhancement in technology leads to numerous newfangled start-ups in the IT industry. Also, many business enthusiasts and entrepreneurs have plenty of plans regarding software business projects. 

Many ideas regarding blockchain, metaverse, and app development are booming in the current trends that will definitely make you successful in monetizing your business. There are many innovative ideas out there to apply to your existing business projects and upcoming business plans. Seek advice from the best software consulting company or software consultants to take your business to the next level also examine your creativities with them to get the right software consulting services.
//rpf のgsap スライド

const listWrapperEl = document.querySelector('.side-scroll-list-wrapper');
const listEl = document.querySelector('.side-scroll-list');

gsap.to(listEl, {
  x: () => -(listEl.clientWidth - listWrapperEl.clientWidth),
  ease: 'none',
  scrollTrigger: {
    trigger: '.side-scroll',
    start: 'top 20%',
    end: () => `+=${listEl.clientWidth - listWrapperEl.clientWidth}`,
    scrub: true,
    pin: true,
    anticipatePin: 1,
    invalidateOnRefresh: true,
    onUpdate: (scrollTrigger) => {
      const activeIndex = Math.round(scrollTrigger.progress * (listEl.children.length - 1));
      yourOtherFunction(activeIndex);
    },
  },
});



function yourOtherFunction(activeIndex) {
  const myList = document.querySelectorAll('.side-scroll-list li');
  const variableToCompare = activeIndex;

  myList.forEach((item, index) => {
    if (index === variableToCompare) {
      item.classList.add('active');
    }
    else {
      item.classList.remove('active');
    }
  });
  const myList2 = document.querySelectorAll('.side-scroll-status li');
  myList2.forEach((item, index) => {
    if (index === variableToCompare) {
      item.classList.add('current');
    }
    else {
      item.classList.remove('current');
    }
  });
}

<div class="side-scroll-container container">
    <div class="side-scroll-list-wrapper">
        <ul class="side-scroll-list">
            <li class="side-scroll-item">
                <div class="side-scroll-item-img">
                    <!-- img src removed -->
                </div>
                <div class="side-scroll-item-text"><!-- Text removed --></div>
            </li>
            <li class="side-scroll-item">
                <div class="side-scroll-item-img">
                    <!-- img src removed -->
                </div>
                <div class="side-scroll-item-text"><!-- Text removed --></div>
            </li>
            <li class="side-scroll-item">
                <div class="side-scroll-item-img">
                    <!-- img src removed -->
                </div>
                <div class="side-scroll-item-text"><!-- Text removed --></div>
            </li>
            <li class="side-scroll-item">
                <div class="side-scroll-item-img">
                    <!-- img src removed -->
                </div>
                <div class="side-scroll-item-text"><!-- Text removed --></div>
            </li>
            <li class="side-scroll-item">
                <div class="side-scroll-item-img">
                    <!-- img src removed -->
                </div>
                <div class="side-scroll-item-text"><!-- Text removed --></div>
            </li>
            <li class="side-scroll-item">
                <div class="side-scroll-item-img">
                    <!-- img src removed -->
                </div>
                <div class="side-scroll-item-text"><!-- Text removed --></div>
            </li>
            <li class="side-scroll-item">
                <div class="side-scroll-item-img">
                    <!-- img src removed -->
                </div>
                <div class="side-scroll-item-text"><!-- Text removed --></div>
            </li>
            <li class="side-scroll-item">
                <div class="side-scroll-item-img">
                    <!-- img src removed -->
                </div>
                <div class="side-scroll-item-text"><!-- Text removed --></div>
            </li>
            <li class="side-scroll-item">
                <div class="side-scroll-item-img">
                    <!-- img src removed -->
                </div>
                <div class="side-scroll-item-text"><!-- Text removed --></div>
            </li>
        </ul>
    </div>
    <ul class="side-scroll-status">
        <li class="side-scroll-status-item current"><span>1</span></li>
        <li class="side-scroll-status-item"><span>2</span></li>
        <li class="side-scroll-status-item"><span>3</span></li>
        <li class="side-scroll-status-item"><span>4</span></li>
        <li class="side-scroll-status-item"><span>5</span></li>
        <li class="side-scroll-status-item"><span>6</span></li>
        <li class="side-scroll-status-item"><span>7</span></li>
        <li class="side-scroll-status-item"><span>8</span></li>
        <li class="side-scroll-status-item"><span>9</span></li>
    </ul>
</div>
.p-mainvisual {
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    &__swiper {
        transition-timing-function: linear;
        &-slide {
            position: relative;
            overflow: hidden;
            height: 100vh;
            min-height: 660px;
            img {
                width: 100%;
                height: 100%;
                object-position: top;
                object-fit: cover;
            }
        }
        .swiper-wrapper img {
            width: 100%;
          }

    }
    &__container.swiper-container {
        padding-bottom: 5px;
        position: relative;
    }

    &__progress {
        position: absolute;
        left: 0;
        bottom: 3px;
        width: 0;
        height: 8px;
        background: $brand-color;
        z-index: 70;
        transition: linear;
    }

    &__scrollbar.swiper-scrollbar.swiper-scrollbar-horizontal {
        width: 100%;
        background: #e0eeea;
        left: 0;
        height: 6px;
        .swiper-scrollbar-drag {
            border-radius: 0;
            background-color: $brand-color;
        }
    }

    &__text {
        position: absolute;
        width: 100%;
        padding: 1rem;
        text-align: center;
        top: clamp(rem(140), 11.98vw, rem(230));
        left: 50%;
        transform: translateX(-50%);
        font-family: $font-family-noto;
        font-size: clamp(rem(50), 3.65vw, rem(70));
        font-weight: 700;
        z-index: 50;
        color: #fff;
        text-shadow: 0px 0px 3px #000;
    }

    &__buttons {
        position: absolute;
        display: flex;
        gap: 0 45px;
        bottom: 10%;
        left: 50%;
        transform: translateX(-50%);
        z-index: 50;
    }
}

// Phone
// --------------------------------------------------
@include media-breakpoint-sp {
    .p-mainvisual {
        &__swiper {
            &-slide {
                max-height: 100vh;
                height: 138vw;
                min-height: 580px;
                img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }
            }
        }
        &__buttons {
            bottom: 5%;
            gap: 0 12px;
            flex-wrap: wrap;
            flex-direction: row-reverse;
            justify-content: center;

        }

        &__text {
            font-size: rem(32);
            top: 140px;
            // line-height: 1.3;
         }
    }
}
var percentTime;
var tick;
var progressBar = document.querySelector('.js-mainvisual-progress');

var mySwiper = new Swiper('.js-mainvisual-container', {
	effect: 'slide',
	loop: true,
	speed: 400,
	slidesPerView: 1,
	spaceBetween: 30,
	grabCursor: false,
	watchOverflow: true,
	easing: 'ease-in',
	keyboard: {
		enabled: true,
		onlyInViewport: true
	},
	watchOverflow: true,
	watchSlidesProgress: true,
	watchSlidesVisibility: true,
	roundLengths: true,
	autoplay: {
		delay: 3000,
		disableOnInteraction: false
	},
	on: {
		slideChange: function () {
			var swiper = this;
			var defaultSlideDelay = swiper.params.autoplay.delay;
			var currentIndex = swiper.realIndex + 1;
			var currentSlide = swiper.slides[currentIndex];
			var currentSlideDelay = currentSlide.getAttribute('data-swiper-autoplay') || defaultSlideDelay;
			updateSwiperProgressBar(progressBar, currentSlideDelay);
		}
	}
});

function updateSwiperProgressBar(bar, slideDelay) {

	let tick;

	function startProgressBar() {
		resetProgressBar();
		tick = requestAnimationFrame(progress);
	}

	function progress() {

		var timeLeft = getTimeout(mySwiper.autoplay.timeout);

		if (mySwiper.autoplay.running && !mySwiper.autoplay.paused) {
			percentTime = sanitisePercentage(100 - (timeLeft / slideDelay * 100));
			bar.style.width = percentTime + 5 + '%';
			bar.style.transition = 'width ' + percentTime + 'ms linear';

			if (percentTime > 100) {
				resetProgressBar();
			}
		}

		if (mySwiper.autoplay.paused) {
			percentTime = 0;
			bar.style.width = 0;
		}

		tick = requestAnimationFrame(progress);
	}

	function resetProgressBar() {
		percentTime = 0;
		bar.style.width = 0;
		cancelAnimationFrame(tick);
	}

	startProgressBar();

}

<div class="p-mainvisual slider">
					<div class="p-mainvisual__container swiper-container js-mainvisual-container">
					  	<div class="p-mainvisual__swiper swiper-wrapper">
					  		<div class="p-mainvisual__swiper-slide swiper-slide"  data-swiper-autoplay="3000">
					  		  <img src="<%= getRelativePath('/assets/images/index/img_index_mv1.jpg'); %>" alt="">
					  		</div>
					  		<div class="p-mainvisual__swiper-slide swiper-slide"  data-swiper-autoplay="3000">
					  		  <img src="<%= getRelativePath('/assets/images/index/img_index_mv2.jpg'); %>" alt="">
					  		</div>
					  		<div class="p-mainvisual__swiper-slide swiper-slide"  data-swiper-autoplay="3000">
					  		  <img src="<%= getRelativePath('/assets/images/index/img_index_mv3.jpg'); %>" alt="">
					  		</div>
					  	</div>
				  

						<div class="p-mainvisual__progress swiper-hero-progress js-mainvisual-progress"></div>

						<div class="p-mainvisual__text">人と自然に<br class="u-only-sp">快適な環境を創る</div>
						<div class="p-mainvisual__buttons">
							<span class="c-rounded-btn js-pop-up">
								<picture>
									<source srcset="<%= getRelativePath('/assets/images/index/img_index_mv_logo1-sp.png.webp'); %>" media="(max-width:767px)" type="image/webp">
									<source srcset="<%= getRelativePath('/assets/images/index/img_index_mv_logo1-sp.png'); %>" media="(max-width:767px)">
									<source srcset="<%= getRelativePath('/assets/images/index/img_index_mv_logo1.png.webp'); %>" type="image/webp">
									<img src="<%= getRelativePath('/assets/images/index/img_index_mv_logo1.png'); %>" alt="エコアクション21認定登録">
								</picture>
							</span>
							<div class="c-rounded-btn__group">
								<a href="https://www3.sanpainet.or.jp/chukan2/company/19452/" target="_blank" class="c-rounded-btn">
									<picture>
										<source srcset="<%= getRelativePath('/assets/images/index/img_index_mv_logo2-sp.png.webp'); %>" media="(max-width:767px)" type="image/webp">
										<source srcset="<%= getRelativePath('/assets/images/index/img_index_mv_logo2-sp.png'); %>" media="(max-width:767px)">
										<source srcset="<%= getRelativePath('/assets/images/index/img_index_mv_logo2.png.webp'); %>" type="image/webp">
										<img src="<%= getRelativePath('/assets/images/index/img_index_mv_logo2.png'); %>" alt="優良産廃処理業者認定">
									</picture>
								</a>
								<a href="<%= getRelativePath('/certificate/'); %>" class="c-rounded-btn">
									<picture>
										<source srcset="<%= getRelativePath('/assets/images/index/img_index_mv_logo3-sp.png.webp'); %>" media="(max-width:767px)" type="image/webp">
										<source srcset="<%= getRelativePath('/assets/images/index/img_index_mv_logo3-sp.png'); %>" media="(max-width:767px)">
										<source srcset="<%= getRelativePath('/assets/images/index/img_index_mv_logo3.png.webp'); %>" type="image/webp">
										<img src="<%= getRelativePath('/assets/images/index/img_index_mv_logo3.png'); %>" alt="許可証一覧">
									</picture>	  
								</a>
							</div>
						</div>
					</div> 
				  </div>
<div class="swiper-container">

    <!-- Additional required wrapper -->

    <div class="swiper-wrapper">

        <!-- Slides -->

        <div class="swiper-slide">Slide 1</div>

        <div class="swiper-slide" data-swiper-autoplay="6000">Slide 2</div>

        <div class="swiper-slide" data-swiper-autoplay="000">Slide 3</div>
8
        <div class="swiper-slide" data-swiper-autoplay="6000">Slide 4</div>

        <div class="swiper-slide" data-swiper-autoplay="5000">Slide 5</div>

    </div>

    <!-- If we need pagination -->

    <div class="swiper-hero-progress"></div>

</div>
.swiper-container {

    width: 0%;

    height: 100vh;

}

​

.swiper-slide {

    background-color: #5e42ff;

    display: flex;

    align-items: center;
10
    justify-content: center;

}

​

.swiper-hero-progress {

    position: absolute;

    left: 0;

    bottom: px;

    width: 0;

    height: 3px;

    background: #FFF;
20
    z-index: 5;
​

var getTimeout = function(){var e=setTimeout,b={};setTimeout=function(a,c){var d=e(a,c);b[d]=[Date.now(),c];return d};return function(a){return(a=b[a])?Math.max(a[1]-Date.now()+a[0],0):NaN}}();

​

function sanitisePercentage(i){

    return Math.min(0,Math.max(0,i));

}

​

// Slider

var percentTime;
10
var tick;

var progressBar = document.querySelector('.swiper-hero-progress');

​

var mySwiper = new Swiper('.swiper-container', {

    effect: 'slide',
// got DOM element

const cursor = document.querySelector('#cursor');

const cursorCircle = cursor.querySelector('.cursor__circle');

​

//variables which defines coordinates of 

const mouse = { x: -0, y: -100 }; // mouse pointer's coordinates

const pos = { x: 0, y: 0 }; // cursor's coordinates

const speed = 0.1; // between 0 and 1

​
10
const updateCoordinates = e => {

  mouse.x = e.clientX;
#cursor {

  position: fixed;

  z-index: 9;

  left: 0;

  top: 0;

  pointer-events: none;

/*   will-change: transform; */

/*   mix-blend-mode: difference; */
9
}

​

@media (hover: hover) and (pointer: fine) {

  .cursor__circle {

    width: 64px;

    height: 64px;

    margin-top: -50%;

    margin-left: -50%;

    border-radius: 50%;

    border: solid 1px rgba(227, 222, 3, 0.64);
19
    transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1),

      background-color 0.3s cubic-bezier(0.25, 1, 0.5, 1),
<div id="cursor">

  <div class="cursor__circle"></div>

</div>

​

<section>

  <div class="container">

    <div class="image-container" cursor-class="arrow">

      <img src="https://i.ibb.co/HDvyzVW/vase-2.jpg" alt="minimalist vase">

    </div>

  </div>

</section>
<div class="s_section">

  <div class="gutter">

    <h1>【SimpleBar】<br>スクロールバーを実装する<br>(横スクロール)</h1>

    <div class="scroll__inner" data-simplebar data-simplebar-auto-hide="false">

      <div class="f_area">

        <div class="f_one">

          <a href="https://5naroom.com/web/4" target="_blank"><img src="https://125naroom.com/demo/img/itukanokotonokoto01.jpg" alt=""></a>
8
        </div>

        <div class="f_one">

          <a href="https://125naroom.com/web/44" target="_blank"><img src="https://125naroom.com/demo/img/itukanokotonokoto02.jpg" alt=""></a>

        </div>
12
        <div class="f_one">

          <a href="https://125naroom.com/web/4184" target="_blank"><img src="https://125naroom.com/demo/img/itukanokotonokoto03.jpg" alt=""></a>
14
        </div>

      </div>

    </div>

    <a href="https://125naroom.com/web/4184" target="_blank" class="_a">詳しくはこちら</a>
18
  </div>

</div>
/*=========

scrollbar

=========*/

​

.scroll__inner {

  background-color: #ffffff;

  padding: 0 0 px 0;

  overflow-x: scroll;

  -ms-overflow-style: none;

  /* IE, Edge 対応 */

  scrollbar-width: none;

  /* Firefox 対応 */

}

.scroll__inner::-webkit-scrollbar {

  /* Chrome, Safari 対応 */

  display: none;

}

.simplebar-scrollbar::before {

  background: #ffffff;
20
  border-radius: 0;

  height: 5px !important;

  margin-left: 2px;

  margin-top: 3px;

}
const memoize = func => {
  let cache = {};
  return (...args) => {
    const key = JSON.stringify(args);
    if (!cache.hasOwnProperty(key)) {
      cache[key] = func(...args);
    }
    return cache[key];
  };
};

module.exports = memoize;
  // Derived state. These are the posts that will actually be displayed
  const searchedPosts = searchQuery.length > 0 ? posts.filter((post) => `${post.title} ${post.body}`.toLowerCase().includes(searchQuery.toLowerCase())) : posts;
The Campus
4 Crinan Street
London, London N1 9XW
United Kingdom
SELECT
EmailAddress, Region, Industry__c, SubscriberKey, Consent_Level_Summary__c, Mailing_Country__c, Language__c, CreatedDate,
FirstName, LastName, DealerCode, MainDealer, Cat_Campaign_Most_Recent__c, Business_Unit__c
 
FROM (
SELECT
DISTINCT LOWER(Email__c) AS EmailAddress, i.Region__c AS Region, i.Industry__c,
c.Id AS SubscriberKey, c.Consent_Level_Summary__c, i.Mailing_Country__c, c.Language__c, i.CreatedDate,
c.FirstName, c.LastName, r.DealerCode, r.MainDealer, r.Cat_Campaign_Most_Recent__c, r.Business_Unit__c,

ROW_NUMBER() OVER(PARTITION BY c.ID ORDER BY i.LastModifiedDate DESC) as RowNum
 
FROM ent.Interaction__c_Salesforce i
JOIN ent.Contact_Salesforce_1 c ON LOWER(c.Email) = LOWER(i.Email__c)
JOIN [7011G000000OJtMQAW_CI_MR_SIS2GO_Welcome_rawdata] r ON LOWER(r.MAIL) = LOWER(i.Email__c)
LEFT JOIN [7011G000000OJtMQAW_CI_MR_SIS2GO_SIS2GO_Exclude_Dealer_Competitor_Agency] e ON LOWER(r.Mail) = LOWER(e.MAIL)
 
WHERE
    e.Mail IS NULL
    AND Email__c IS NOT NULL
    AND  (i.System_Language__c like 'en_%' OR (i.Mailing_Country__c != 'CA' AND i.System_Language__c is null))
   
        )t2
 
WHERE RowNum = 1
import React, { useState } from "react";
import { FaChevronDown, FaChevronRight } from "react-icons/fa";

const TreeNode = ({ node }) => {
  const [isExpanded, setIsExpanded] = useState(false);

  const handleToggle = () => {
    setIsExpanded(!isExpanded);
  };

  return (
    <div className="">
      <div
        onClick={handleToggle}
        className="flex items-center px-4  group rounded-md hover:text-blue-600 hover:bg-blue-200 text-base font-serif">
        {Object.keys(node).length > 1 ? (
          <span className="mr-2 text-xs ">
            {isExpanded ? <FaChevronDown /> : <FaChevronRight />}
          </span>
        ) : (
          <span className="ml-5"></span>
        )}
        {node.name}
      </div>
      {isExpanded && (
        <div className="ml-5 ">
          {Object.keys(node).map((key) => {
            if (Array.isArray(node[key])) {
              return node[key].map((child) => (
                <TreeNode key={child.name} node={child} />
              ));
            }
            return null;
          })}
        </div>
      )}
    </div>
  );
};

// Define the Tree component
const Tree = ({ data }) => {
  return (
    <div className="">
      {data.map((node) => (
        <TreeNode key={node.id} node={node} />
      ))}
    </div>
  );
};

const states = [
  {
    name: "Gujarat",
    districts: [
      {
        name: "Surat",
        cities: [
          {
            name: "varachha",
            area: [
              { name: "yogivhowk" },
              { name: "varachha" },
              { name: "puna" },
            ],
          },
          {
            name: "kamrej",
            area: [{ name: "tapi" }, { name: "choryashi" }],
          },
        ],
      },
      { name: "Rajkot", cities: [{ name: "jetpur" }, { name: "gondal" }] },
    ],
  },
  {
    name: "Rajasthan",
    districts: [
      {
        name: "Surat",
        cities: [
          {
            name: "varachha",
            area: [
              { name: "yogivhowk" },
              { name: "varachha" },
              { name: "puna" },
            ],
          },
          {
            name: "kamrej",
          },
        ],
      },
      { name: "Rajkot", cities: [{ name: "jetpur" }, { name: "gondal" }] },
    ],
  },
  {
    name: "Bihar",
    districts: [
      {
        name: "Surat",
        cities: [
          {
            name: "varachha",
            area: [
              { name: "yogivhowk" },
              { name: "varachha" },
              { name: "puna" },
            ],
          },
          {
            name: "kamrej",
          },
        ],
      },
      { name: "Rajkot", cities: [{ name: "jetpur" }, { name: "gondal" }] },
    ],
  },
  {
    name: "delhi",
    districts: [
      {
        name: "Surat",
        cities: [
          {
            name: "varachha",
            area: [
              { name: "yogivhowk" },
              { name: "varachha" },
              { name: "puna" },
            ],
          },
          {
            name: "kamrej",
          },
        ],
      },
      { name: "Rajkot", cities: [{ name: "jetpur" }, { name: "gondal" }] },
    ],
  },
];

function App() {
  return (
    <div className="flex flex-col w-60 h-96 border border-gray-300 rounded-md p-4 m-auto mt-52 overflow-y-scroll bg-blue-50">
      <Tree data={states} />
    </div>
  );
}

export default App;
<!-- Google tag (gtag.js) -->

<script async src="https://www.googletagmanager.com/gtag/js?id=G-2D1ZCVPF"></script>
3
<script>

  window.dataLayer = window.dataLayer || [];

  function gtag(){dataLayer.push(arguments);}

  gtag('js', new Date());
7
​

  gtag('config', 'G-72D1ZCV3PF');

</script>
curl [URL] -d "key1=value1&key2=value2"
curl [URL] -F key1=value1 -F key2=value2 -F key2=@filename
curl [URL] -d "key1=value1&key2=value2"
curl [URL] -F key1=value1 -F key2=value2 -F key2=@filename
curl [URL] -d "key1=value1&key2=value2"
curl [URL] -F key1=value1 -F key2=value2 -F key2=@filename
   var swiper = new Swiper('.js-news-swiper', {
      slidesPerView: 'auto',
      centeredSlides: true,
      spaceBetween: 20,
      speed: 1500,
      pagination: {
        el: '.swiper-pagination',
        clickable: true
      },
      navigation: {
        nextEl: '.swiper-button-next',
        prevEl: '.swiper-button-prev'
      },
      autoplay: {
        delay: 2000,
        disableOnInteraction: false
      },
      loop: true,
      watchSlidesProgress: true
    });
<div class="p-ticker js-ticker">
    <div class="p-ticker__wrapper swiper-wrapper">
        <div class="p-ticker__item swiper-slide">
            <div class="p-ticker__text">
                text
            </div>
        </div>
        <div class="p-ticker__item swiper-slide">
            <div class="p-ticker__text">
                text
            </div>
        </div>
        <div class="p-ticker__item swiper-slide">
            <div class="p-ticker__text">
                text
            </div>
        </div>
        <div class="p-ticker__item swiper-slide">
            <div class="p-ticker__text">
                text
            </div>
        </div>
        <div class="p-ticker__item swiper-slide">
            <div class="p-ticker__text">
                text
            </div>
        </div>
    </div>
</div>
.p-ticker {
    width: 100%;
    .swiper-slide {
        width: auto;
    }
    &__wrapper {
        transition-timing-function: linear;
    }
    &__text {
        color: #000;
        font-size:  32px;
        font-weight: 900;
    }
}
    var mySwiper = new Swiper(".js-ticker", {	
        infinite: true,
        loop: true,
        slidesPerView: 'auto',
        speed: 8000,
        spaceBetween: 32,
        centeredSlides: true,
        autoplay: {
          delay: 0,
          disableOnInteraction: false,
          reverseDirection: false,
        },
      });

star

Fri Feb 16 2024 15:35:57 GMT+0000 (Coordinated Universal Time) https://getbootstrap.com/docs/5.3/components/accordion/

@CHIBUIKE

star

Fri Feb 16 2024 15:35:50 GMT+0000 (Coordinated Universal Time) https://getbootstrap.com/docs/5.3/components/accordion/

@CHIBUIKE

star

Fri Feb 16 2024 15:35:37 GMT+0000 (Coordinated Universal Time) https://getbootstrap.com/docs/5.3/components/accordion/

@CHIBUIKE

star

Fri Feb 16 2024 15:32:37 GMT+0000 (Coordinated Universal Time) https://getbootstrap.com/docs/5.3/components/dropdowns/

@CHIBUIKE

star

Fri Feb 16 2024 15:32:28 GMT+0000 (Coordinated Universal Time) https://getbootstrap.com/docs/5.3/components/dropdowns/

@CHIBUIKE

star

Fri Feb 16 2024 15:32:18 GMT+0000 (Coordinated Universal Time) https://getbootstrap.com/docs/5.3/components/dropdowns/

@CHIBUIKE

star

Fri Feb 16 2024 13:47:40 GMT+0000 (Coordinated Universal Time)

@NoobAl

star

Fri Feb 16 2024 13:27:06 GMT+0000 (Coordinated Universal Time) undefined

@snarklife

star

Fri Feb 16 2024 11:48:23 GMT+0000 (Coordinated Universal Time)

@Y@sir #undefined #svg #allow-svg

star

Fri Feb 16 2024 10:47:24 GMT+0000 (Coordinated Universal Time) https://maticz.com/software-consulting-services

@Floralucy #softwareconsultingcompany #softwareconsultants #bestsoftwareconsultingcompany #softwareservices

star

Fri Feb 16 2024 09:09:48 GMT+0000 (Coordinated Universal Time)

@homunculus #javascript #gsap

star

Fri Feb 16 2024 09:08:03 GMT+0000 (Coordinated Universal Time)

@homunculus #html #gsap

star

Fri Feb 16 2024 08:41:54 GMT+0000 (Coordinated Universal Time)

@homunculus #scss

star

Fri Feb 16 2024 08:34:38 GMT+0000 (Coordinated Universal Time)

@homunculus #javascript

star

Fri Feb 16 2024 08:33:00 GMT+0000 (Coordinated Universal Time)

@homunculus #javascript

star

Fri Feb 16 2024 08:24:04 GMT+0000 (Coordinated Universal Time) https://codepen.io/Omurbekovic/pen/dywpRrE

@homunculus #undefined

star

Fri Feb 16 2024 08:20:10 GMT+0000 (Coordinated Universal Time) https://codepen.io/Omurbekovic/pen/dywpRrE

@homunculus #css

star

Fri Feb 16 2024 08:19:35 GMT+0000 (Coordinated Universal Time) https://codepen.io/Omurbekovic/pen/dywpRrE

@homunculus #javascript

star

Fri Feb 16 2024 08:14:45 GMT+0000 (Coordinated Universal Time) https://codepen.io/Omurbekovic/pen/gOEKEMP

@homunculus #javascript

star

Fri Feb 16 2024 08:14:07 GMT+0000 (Coordinated Universal Time) https://codepen.io/Omurbekovic/pen/gOEKEMP

@homunculus #css

star

Fri Feb 16 2024 08:13:25 GMT+0000 (Coordinated Universal Time) https://codepen.io/Omurbekovic/pen/gOEKEMP

@homunculus #html

star

Fri Feb 16 2024 08:01:56 GMT+0000 (Coordinated Universal Time) https://codepen.io/Omurbekovic/pen/OJqXeVB

@homunculus #html

star

Fri Feb 16 2024 08:00:58 GMT+0000 (Coordinated Universal Time) https://codepen.io/Omurbekovic/pen/OJqXeVB

@homunculus #css

star

Fri Feb 16 2024 07:43:52 GMT+0000 (Coordinated Universal Time) https://webdesign.tutsplus.com/awesome-codepen-demos-css-transitions-and-animations--cms-107755t

@homunculus

star

Fri Feb 16 2024 07:18:13 GMT+0000 (Coordinated Universal Time) https://github.com/nas5w/javascript-patterns

@kayengxiong

star

Fri Feb 16 2024 03:19:20 GMT+0000 (Coordinated Universal Time) https://tympanus.net/codrops/2023/02/08/shuffling-typography-animation/

@homunculus

star

Fri Feb 16 2024 03:19:10 GMT+0000 (Coordinated Universal Time) https://tympanus.net/codrops/2023/02/08/shuffling-typography-animation/

@homunculus

star

Fri Feb 16 2024 03:02:36 GMT+0000 (Coordinated Universal Time) https://webdesign.tutsplus.com/quick-tip-how-to-create-angled-edges-with-sass--cms-31545t

@homunculus

star

Fri Feb 16 2024 03:00:51 GMT+0000 (Coordinated Universal Time) https://webdesign.tutsplus.com/how-to-create-different-css-hover-effects-from-scratch--cms-34222t

@homunculus

star

Fri Feb 16 2024 03:00:45 GMT+0000 (Coordinated Universal Time) https://webdesign.tutsplus.com/how-to-create-different-css-hover-effects-from-scratch--cms-34222t

@homunculus

star

Fri Feb 16 2024 02:56:48 GMT+0000 (Coordinated Universal Time) https://webdesign.tutsplus.com/to-do-app-with-vanilla-javascript--cms-35258t

@homunculus

star

Fri Feb 16 2024 02:54:00 GMT+0000 (Coordinated Universal Time) https://webdesign.tutsplus.com/how-to-draw-patterns-with-css-using-css-doodle--cms-33110t

@homunculus

star

Fri Feb 16 2024 02:38:52 GMT+0000 (Coordinated Universal Time) https://webdesign.tutsplus.com/draggable-javascript-image-gallery-with-gsap--cms-37591t

@homunculus

star

Fri Feb 16 2024 02:37:11 GMT+0000 (Coordinated Universal Time) https://webdesign.tutsplus.com/javascript-based-animations-using-animejs-parameters--cms-28914t

@homunculus

star

Fri Feb 16 2024 02:35:17 GMT+0000 (Coordinated Universal Time) https://webdesign.tutsplus.com/how-to-build-a-css-loading-animation-with-keyframes--cms-93572t

@homunculus

star

Fri Feb 16 2024 02:33:01 GMT+0000 (Coordinated Universal Time) https://webdesign.tutsplus.com/how-to-create-animated-snow-on-a-website-with-css-and-javascript--cms-93562t

@homunculus

star

Fri Feb 16 2024 02:29:24 GMT+0000 (Coordinated Universal Time) https://webdesign.tutsplus.com/build-an-infinite-blinking-text-animation-with-css-and-a-touch-of-javascript--cms-93490t

@homunculus #css #javascript

star

Thu Feb 15 2024 23:49:23 GMT+0000 (Coordinated Universal Time) https://vitejs.dev/guide/

@winifredogbeiwi #react.js

star

Thu Feb 15 2024 22:04:22 GMT+0000 (Coordinated Universal Time)

@davidmchale #react #filter #query

star

Thu Feb 15 2024 21:40:26 GMT+0000 (Coordinated Universal Time) https://sharelatex.recurly.com/account/invoices/2505121

@jkirangw

star

Thu Feb 15 2024 15:12:42 GMT+0000 (Coordinated Universal Time) undefined

@rishim

star

Thu Feb 15 2024 14:10:14 GMT+0000 (Coordinated Universal Time)

@shirnunn

star

Thu Feb 15 2024 13:22:13 GMT+0000 (Coordinated Universal Time)

@Ajay1212

star

Thu Feb 15 2024 12:05:21 GMT+0000 (Coordinated Universal Time) https://chen-studio.co.il/wp-admin/admin.php?page

@chen #undefined

star

Thu Feb 15 2024 11:55:22 GMT+0000 (Coordinated Universal Time)

@katalinilles

star

Thu Feb 15 2024 10:45:04 GMT+0000 (Coordinated Universal Time) https://www.will-myers.com/articles/perfect-anchor-links-in-squarespace

@rosieames #html

star

Thu Feb 15 2024 10:02:44 GMT+0000 (Coordinated Universal Time)

@homunculus #javascript

star

Thu Feb 15 2024 09:57:09 GMT+0000 (Coordinated Universal Time)

@homunculus #html

star

Thu Feb 15 2024 09:54:58 GMT+0000 (Coordinated Universal Time)

@homunculus #scss

star

Thu Feb 15 2024 09:52:47 GMT+0000 (Coordinated Universal Time)

@homunculus #javascript #swiper

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension