728x90 분류 전체보기720 자바스크립트 - alertBox function alertBox(msg, delay = 3000){ var container = document.createElement('div'); container.setAttribute('class', 'alertBox-container'); container.style.width = '100%'; container.style.height = '100px'; container.style.position = 'fixed'; container.style.bottom = '0'; container.style.display = 'flex'; container.style.justifyContent = 'center'; var box = document.createElement('div'); box.styl.. 2022. 4. 10. 셀레니움 - 크롬 모바일 미러링(chrome://inspect) 사용 방법 1. PC 크롬에서 "chrome://inspect" 주소로 접속 2. PC에서 adb로 모바일 브릿지 연결 3. 모바일에서 크롬 앱 실행 안드로이드 크롬을 조작할 때 엘레멘트 요소를 분석할 때 사용하면 좋다. https://janger.tistory.com/250?category=1254107 참고: https://jfbta.tistory.com/71 크롬 인스펙터] chrome inspect, 모바일 웹 디버깅 하는 방법 Chrome Inspect. 한글로 '크롬 인스펙터' 라고 하는데 실제 모바일 기기를 크롬 개발자툴에서 그대로 구현해서 편리하게 디버깅할 수 있는 기능이다. 사용방법 첫째, 모바일 USB 드라이버를 설치한다. jfbta.tistory.com 2022. 4. 9. 셀레니움 - 안드로이드 모바일 크롬 조작 디바이스가 한 개인 경우 # -*- coding: utf-8 -*- from selenium import webdriver import time options = webdriver.ChromeOptions() options.add_experimental_option('androidPackage', 'com.android.chrome') driver = webdriver.Chrome(options=options) driver.implicitly_wait(15) driver.get('https://www.naver.com') time.sleep(1) print(driver.current_url) driver.execute_script('alert(1)') 나중에 알게된 사실인데 driver = webdriv.. 2022. 4. 9. 안드로이드 스튜디오 - 스와이프 리스트 메뉴 구현 SwipeMenuListView: https://github.com/baoyongzhang/SwipeMenuListView GitHub - baoyongzhang/SwipeMenuListView: [DEPRECATED] A swipe menu for ListView. [DEPRECATED] A swipe menu for ListView. Contribute to baoyongzhang/SwipeMenuListView development by creating an account on GitHub. github.com ListView 조작 블로그: https://lktprogrammer.tistory.com/163 [Android] 안드로이드 - 리스트뷰(ListView) 구현 리스트뷰(ListView)는.. 2022. 4. 7. React Native - 초기 설치 [컴퓨터에 개발 환경 설치하기] https://reactnative.dev/docs/environment-setup Setting up the development environment · React Native This page will help you install and build your first React Native app. reactnative.dev npx react-native init SampleApp cd SampleApp npm run android 출처: https://dev-yakuza.posstree.com/ko/react-native/install-on-windows/ 윈도우(Windows)에 react native 개발 환경 구축하기 react-native로 앱을 개발하기.. 2022. 4. 7. 안드로이드 스튜디오 - HTTP 통신 라이브러리(Volley) [build.gradle] implementation 'com.android.volley:volley:버전' [AndroidManifest.xml] usesCleartextTraffic로 https 사용 지원 활성화 [mainActivity.java] String url ="https://www.google.com"; RequestQueue requestQueue = Volley.newRequestQueue(getApplicationContext()); StringRequest stringRequest = new StringRequest(Request.Method.GET, url, new Response.Listener() { @Override public void onResponse(String res.. 2022. 4. 5. 무료 사운드 공유 사이트 https://freesound.org/ Freesound - Freesound March 21st, 2022 frederic.font Hi everyone, This post is to let you know that have been working on an updated Privacy Policy and Terms of Use of the Freesound website, and are also starting the process to migrate old Creative Commons licenses to newer … freesound.org 2022. 4. 4. Electron - loadURL로 문서 불러온 후에 자바스크립트 실행 win.loadURL('https://google.com'); win.webContents.executeJavaScript('document.body.innerHTML = "1234"'); 참고: https://javascript.hotexamples.com/examples/electron/remote.BrowserWindow/loadURL/javascript-remote.browserwindow-loadurl-method-examples.html JavaScript remote.BrowserWindow.loadURL Examples, electron.remote.BrowserWindow.loadURL JavaScript Examples - HotExamples javascript.hotexamples... 2022. 4. 1. 안드로이드 스튜디오 - RecyclerView(리사이클러뷰) 조작 총 5가지의 작업이 필요, 각각 activity_main.xml, 아이템.xml, 데이터.java, 리사이클러_어댑터.java, MainActivity.java [activity_main.xml] 도화지 역할을 해줄 activity_main.xml에 RecyclerView를 넣음 [item.xml] 리스트에 들어갈 아이템들을 꾸며줌 [Data.java] package com.app.listapp; public class Data { private String name; private String phone; public Data(String name, String phone){ this.name = name; this.phone = phone; } public String getName(){ return.. 2022. 3. 30. Electron - 렌더러가 메인에게 신호 보내기(ipcMain & ipcRenderer) [@electron/remote 모듈 필요] // In the Renderer const { BrowserWindow } = require('@electron/remote') // In the main process: require('@electron/remote/main').initialize() [renderer.js] const { ipcRenderer } = require('electron') //to minimize ipcRenderer.send('minimize', data); [main.js] const { ipcMain } = require('electron') ipcMain.on('minimize', (event, data) => { //Minimize logic }) 출처: https:.. 2022. 3. 28. Electron - Tray 생성 및 클릭 이벤트, Tray 아이콘 변경 const { app, BrowserWindow, Menu, Tray } = require('electron'); let tray = null app.whenReady().then(() => { tray = new Tray('./icon1.png'); var contextMenu = Menu.buildFromTemplate([ { label: 'Hello world!', click: function(){ console.log('Hello world!'); tray.setImage('./icon2.png'); } }, { label: 'Quit', click: function(){ app.quit(); } } ]); tray.setContextMenu(contextMenu); }) Tray 생성 및 클릭 .. 2022. 3. 28. Electron - 마우스 드래그로 창 움직이기 element{ -webkit-app-region: drag; } 출처: https://tinydew4.github.io/electron-ko/docs/api/frameless-window/ Frameless 윈도우 툴바, 테두리, 시각적인 "chrome" 없이 윈도우를 엽니다. tinydew4.github.io 2022. 3. 28. 이전 1 ··· 43 44 45 46 47 48 49 ··· 60 다음 728x90