반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- Maven
- Java
- javascript
- Next.js
- centos7
- popup
- MSsql
- SpringBoot
- MariaDB
- jenkins
- spring3
- docker
- nodejs
- mysql
- mybatis
- pwa
- FCM
- PM2
- rocky9
- node.js
- security
- ajax
- Tomcat
- Push
- git
- yona
- NextJS
- config
- Eclipse
- jquery
Archives
- Today
- Total
목록플로팅 메뉴 (1)
ふたりで
URL location.pathname으로 구분 처리를 해야 할 경우...
나의 경우 특정 화면에서만 플로팅 메뉴의 위치를 조정해 줘야 하는 부분이 있었다. 아래와 같이 location.pathname으로 URL 경로를 구분하여 대시보드 화면에서만 플로팅 메뉴의 위치를 다르게 표시되도록 처리를 하였다. //fixgroup컨트롤 dashBoard에서만 class fixgroup--top을 추가해준다 var pathname = window.location.pathname.split('/'); var lastindex = pathname.length; var lastpath = pathname[lastindex-1]; console.log(lastpath); if(lastpath == 'dashBoard'){ $('#fixgroup').addClass("fixgroup--top");..
javascript
2022. 9. 23. 11:15