Skip to content

Commit

Permalink
Merge branch 'Anushkabh:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
anagha-chaudhari authored Jul 4, 2024
2 parents 76c2e34 + 64d811d commit e95cabc
Show file tree
Hide file tree
Showing 4 changed files with 369 additions and 1,599 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Auto Format with Prettier

on:
push:
branches:
- main # Adjust as per your default branch

jobs:
format:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install Node.js and npm
uses: actions/setup-node@v2
with:
node-version: '14' # Adjust to match your project's Node.js version

- name: Install dependencies
run: npm install

- name: Run Prettier to format code
run: npm run format

- name: Commit formatted code
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
git add .
git diff-index --quiet HEAD || git commit -m "Auto-format code using Prettier"
git push origin main
19 changes: 0 additions & 19 deletions assets/js/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,6 @@ $(document).ready(function () {
$('.preloader').fadeOut();
});

$(window).scroll(function () {
var scroll = $(window).scrollTop();
if (scroll > 200) {
$('#page-navigation').addClass('bg-white').removeClass('bg-transparent');
$('#page-navigation').addClass('navbar-light').removeClass('navbar-dark');
$('#your-image').attr(
'src',
'assets/img/logo/krishiconnect-high-resolution-logo.png'
);
} else {
$('#page-navigation').addClass('bg-transparent').removeClass('bg-white');
$('#page-navigation').addClass('navbar-dark').removeClass('navbar-light');
$('#your-image').attr(
'src',
'assets/img/logo/krishiconnect-high-resolution-logo_black.png'
);
}
});

$('.landing-categories').owlCarousel({
loop: true,
items: 4,
Expand Down
Loading

0 comments on commit e95cabc

Please sign in to comment.