SALONIA サロニア スピーディーイオン ドライヤー 大風量 速乾 軽量 マイナスイオン ヘアドライヤー SL-013BK ブラック

レビュー分析
この商品は使いやすく、デザインや機能性が高いと評価されています。
良い点
- 使いやすい
- デザインが良い
- 機能性が高い
悪い点・注意点
- 特に悪い点は記載されていません
商品説明
【2.3㎥/minの大風量】ドライ時間30%短縮を実現。面倒なドライ時間を短縮できる大風量ドライヤー 【早く乾くからダメージカット】速乾でキューティクルの開きを防ぎ、ダメージをカット 【マイナスイオン搭載】髪にうれしいマイナスイオン機能を搭載 【ペットボトル約1本分の軽さ】時間ドライの負担を軽減して収納にも便利なコンパクト設計 【シンプルな3モード】TURBO/SET/COOLの3モードを搭載。用途に応じた使い分け可能 商品の情報 詳細情報 メーカー SALONIA(サロニア) 型番 SL-013BK 梱包サイズ 24.9 x 14 x 8.9 cm 素材 ポリカーボネート 色 ブラック ワット数(W) 1200 W その他 機能 TURBO/SET/COOL3モード, 軽量・コンパクト, 大風量・速乾, マイナスイオン 電源 電源コード式 電圧(V) 100 ボルト ヘアアイロンタイプ 細毛, うねり, 直毛, 癖毛, ダメージ 梱包重量 0.62 キログラム 電池使用 いいえ お手入れ 手洗い メーカー保証 購入から1年 ブランド名 SALONIA(サロニア) 商品重量 468 グラム 登録情報 ASIN B07VCP8JXS おすすめ度 4.2 5つ星のうち4.2 36,988個の評価 var dpAcrHasRegisteredArcLinkClickAction; P.when('A', 'ready').execute(function(A) { if (dpAcrHasRegisteredArcLinkClickAction !== true) { dpAcrHasRegisteredArcLinkClickAction = true; A.declarative( 'acrLink-click-metrics', 'click', { "allowLinkDefault": true }, function (event) { if (window.ue) { ue.count("acrLinkClickCount", (ue.count("acrLinkClickCount") || 0) + 1); } } ); } }); P.when('A', 'cf').execute(function(A) { A.declarative('acrStarsLink-click-metrics', 'click', { "allowLinkDefault" : true }, function(event){ if(window.ue) { ue.count("acrStarsLinkWithPopoverClickCount", (ue.count("acrStarsLinkWithPopoverClickCount") || 0) + 1); } }); }); 5つ星のうち4.2 Amazon 売れ筋ランキング - 6位ビューティー (ビューティーの売れ筋ランキングを見る) - 1位ヘアドライヤー Amazon.co.jp での取り扱い開始日 2019/7/18 ご意見ご要望 .grid-container { display: block; flex-direction: column; } .grid-row { align-items: center; margin-bottom: 10px; margin-left: 20px; } .grid-label { min-width: 50px; padding-right: 10px; } .widgetAlerts { display: none; } .grid-input { flex: 1; width: 100% } .asterisk { color: #EB0000; } .visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; } .priceavailability{ padding: 0 28px; } @media (min-width: 420px) and (max-width: 550px){ .container{ display: block; } .grid-input{ font-size: 85%; } .priceavailability{ padding: 0 28px; } .a-dropdown-container .a-button-dropdown .a-button-text{ font-size: 79%; } } @media (min-width: 320px) and (max-width: 419px) { .priceavailability{ padding: 0 0px; } .container{ display: block; } .grid-input{ font-size: 80%; } input#offlineCity.grid-input{ font-size: 62%; } span#stateValue{ .grid-input { font-size: 77%; } } .a-dropdown-container .a-button-dropdown .a-button-text{ font-size: 65%; } } さらに安い価格について知らせる? SALONIA サロニア スピーディーイオン ドライヤー 大風量 速乾 軽量 マイナスイオン ヘアドライヤー SL-013BK ブラック シェア: さらに安い価格を見つけられた場合は、当サイトまでお知らせください。お客様からの情報を参考にして、さらにリーズナブルな価格でご提供できるよう努力します。 さらに安い価格はどこでご覧になりましたか? Fields with an asterisk * are required Price Availability インターネット店舗 URL *: 税込価格 (¥) *: 送料 (¥): 価格を見た日付 (MM/DD/YYYY): 01 02 03 04 05 06 07 08 09 10 11 12 / 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 / 小売店の実店舗 店舗名 *: Enter the store name where you found this product Enter the store name where you found this product 市区町村 *: 都道府県: 都道府県を選択してください 都道府県を選択してください 税込価格 (¥) *: 価格を見た日付 (MM/DD/YYYY): 01 02 03 04 05 06 07 08 09 10 11 12 / 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 / フィードバックを送信 フィードバックを提供するにはサインインしてください。 P.when("A", "a-modal", "ready").execute(function (A, modal) { var $ = A.$; var instance; var title = $("#modalHeader").val(); function getModalWidth() { if (window.matchMedia("(max-width: 420px)").matches) { return "320px"; // Width for very small screens } else if (window.matchMedia("(max-width: 550px)").matches) { return "420px"; // Width for small screens } else { return "550px"; // Default width } } A.declarative("pricingFeedback-modal-button", "click", function (event) { if (!instance) { var options = { name: "pricingFeedback-modal-content", dataStrategy: "preload", }; instance = modal.create(event.$target, options); } instance.update({ header: title, width: getModalWidth() }).lock().show(); }); $(window).resize(function() { if (instance) { instance.update({ width: getModalWidth() }); } }); }); P.when('A', 'ready').execute(function (A) { var $ = A.$; var csrf = $("#aapiCsrfToken").val(); var productPrice = $("#priceValue").val(); var hostname = $("#absoluteUrlPrefix").val(); var customerId = $("#customerId").val(); var isCustomerRecognized = ($("#isCustomerLoggedIn").val() === 'true'); var isCurrentGlOnlineOnly = ($("#isCurrentGlOnlineOnly").val() === 'true'); var asin = $("#asin").val(); var marketplaceId = $("#marketplaceId").val(); var country = $("#countryCode").val(); var offlineStoresList = $("#offlineStoresList").val(); var statesList = $("#statesList").val(); var errorMessages = { errorNoRetailerType: $("#errorNoType").val(), errorBadPrice: $("#errorBadPrice").val(), errorBadPriceShipping: $("#errorBadPriceShipping").val(), errorInvalidUrl: $("#errorInvalidUrl").val(), errorSubmission: $("#errorSubmission").val(), errorEmptyFields: $("#errorEmptyFields").val(), errorMissingCity: $("#errorMissingCity").val(), errorEmptyUrl:$("#errorEmptyUrl").val(), thankFeedback: $("#thankFeedback").val() }; var feedbackFormContent = document.querySelector('#feedbackForm'); var signUpContainer = document.querySelector('#signUpForm'); var feedbackFormFinalStateContainer = document.querySelector('#feedbackFormFinalState'); var states = JSON.parse(statesList); var offlineStores = JSON.parse(offlineStoresList); var offlineStoresEnabled = !isCurrentGlOnlineOnly; var currentDate = getCurrentDay(); var currentMonth = getCurrentMonth(); var currentYear = getCurrentYear(); if (isCustomerRecognized) { feedbackFormContent.style['display'] = 'block'; signUpContainer.style['display'] = 'none'; var enableOnlineStoreRadio = document.querySelector('#pricingFeedback_onlineRadio'); var enableOfflineStoreRadio = document.querySelector('#pricingFeedback_offlineRadio'); var onlineStoreInputForm = document.querySelector('#pricingFeedback_onlineInput'); var offlineStoreInputForm = document.querySelector('#pricingFeedback_offlineInput'); var offlineStateSelect = document.querySelector('#offlineState'); var offlineStoreSelect = document.querySelector('#offlineStoreName'); var submitButton = document.querySelector('#pricingFeedback_submit'); var onlineUrl = document.querySelector('#onlineUrl'); var onlinePriceRaw = document.querySelector('#onlinePriceRaw'); var onlineShippingRaw = document.querySelector('#onlineShippingRaw'); var onlineDay = document.querySelector('#onlineDay'); var onlineMonth = document.querySelector('#onlineMonth'); var onlineYear = document.querySelector('#onlineYear'); var onlineCalendar = document.querySelector('#onlineCalendar'); var note1 = document.querySelector('#note1'); var offlineRadioContainer = document.querySelector('#offlineRadioContainer'); var offlineStoreName = document.querySelector('#offlineStoreName'); var offlineCity = document.querySelector('#offlineCity'); var offlineState = document.querySelector('#offlineState'); var offlinePriceRaw = document.querySelector('#offlinePriceRaw'); var offlineDay = document.querySelector('#offlineDay'); var offlineMonth = document.querySelector('#offlineMonth'); var offlineYear = document.querySelector('#offlineYear'); var offlineCalendar = document.querySelector('#offlineCalendar'); var thankYouDiv = document.querySelector('#pricingFeedback_thank'); var errorDiv = document.querySelector('#pricingFeedback_error'); var loadingGifDiv = document.querySelector('#loading'); var offlineStateMain = document.querySelector('#offlineStateMain'); note1 = document.querySelector('#note1'); setCalenderOrderBasedOnCountry(country); setInitialStates( onlineMonth, currentMonth, offlineMonth, onlineDay, currentDate, offlineDay, onlineYear, currentYear, offlineYear, onlineStoreInputForm, offlineStoreInputForm, enableOfflineStoreRadio, enableOnlineStoreRadio, onlineCalendar, offlineCalendar, offlineStateMain, offlineState, note1 ); createPermalinkContainer(asin, hostname); for (let state of states) { var option = document.createElement('option'); option.setAttribute('value', state['value']); option.innerText = state['name']; offlineStateSelect.appendChild(option); } offlineStores.forEach(function(store) { var option = document.createElement('option'); option.value = store; option.textContent = store; offlineStoreSelect.appendChild(option); }); function setCSSForFeedbackForm() { const labels = document.querySelectorAll('.grid-label'); let maxWidth = 0; labels.forEach(label => { maxWidth = Math.max(maxWidth, label.clientWidth); }); labels.forEach(label => { label.style.minWidth = maxWidth + 'px'; }); } $("#pricingFeedback_onlineRadio").click(function () { onlineStoreInputForm.style['display'] = 'block'; offlineStoreInputForm.style['display'] = 'none'; note1.style['display'] = 'block'; setCSSForFeedbackForm(); }); function handleInput(element, alert) { if (element.hasClass('a-form-error')) { alert.style['display'] = 'none'; element.removeClass('a-form-error').addClass('a-form-normal'); element.removeAttr("aria-invalid"); element.removeAttr("aria-describedby"); } } $('#onlineUrl').change(function () { var urlAlert = document.querySelector('#onlineUrl-missing-alert'); handleInput($(this), urlAlert); }); $('#onlinePriceRaw').change(function () { var priceAlertOnline = document.querySelector('#onlinePrice-missing-alert'); handleInput($(this), priceAlertOnline); }); $('#onlineShippingRaw').change(function () { var priceShippingAlertOnline = document.querySelector('#onlineShippingPrice-missing-alert'); handleInput($(this), priceShippingAlertOnline); }); $('#offlineCity').change(function () { var cityAlert = document.querySelector('#offlineCity-missing-alert'); handleInput($(this), cityAlert); }); $('#offlineStoreName').change(function () { var storeAlert = document.querySelector('#offlineStoreName-missing-alert'); handleInput($(this), storeAlert); }); $('#offlinePriceRaw').change(function () { var priceAlertOffline = document.querySelector('#offlinePriceRaw-missing-alert'); handleInput($(this), priceAlertOffline); }); $("#pricingFeedback_offlineRadio").click(function () { onlineStoreInputForm.style['display'] = 'none'; offlineStoreInputForm.style['display'] = 'block'; note1.style['display'] = 'block'; setCSSForFeedbackForm(); }); if (!offlineStoresEnabled) { offlineRadioContainer.style['display'] = 'none'; offlineStoreInputForm.style['display'] = 'none'; } $("#pfw_submit").click(function () { var feedbackSubmitted = submitFeedback( customerId, marketplaceId, asin, productPrice, onlineStoreInputForm, offlineStoreInputForm, onlineUrl.value, onlinePriceRaw.value, onlineShippingRaw.value, onlineDay.value, onlineMonth.value, offlineStoreName.value, offlineCity.value, offlineState.value, offlinePriceRaw.value, offlineDay.value, offlineMonth.value, thankYouDiv, errorDiv, submitButton, loadingGifDiv, errorMessages ); if (feedbackSubmitted !== null && !feedbackSubmitted) { errorDiv.innerHTML = getErrorDiv(errorMessages.errorSubmission); } }); A.on("a:popover:beforeHide:pricingFeedback-modal-content", function (data) { resetModalToInitialState(currentMonth, currentDate, currentYear); }); } else { feedbackFormContent.style['display'] = 'none'; signUpContainer.style['display'] = 'block'; var authPortalLink = getAuthenticationPageURL(asin, hostname); $("#signUpForm").one("click", function () { window.location = encodeURI(authPortalLink); }); } function setCalenderOrderBasedOnCountry(country) { var monthSections = document.getElementsByClassName('monthSection'); var daySections = document.getElementsByClassName('daySection'); var yearSections = document.getElementsByClassName('yearSection'); var firstDelimiters = document.getElementsByClassName('firstDelimiter'); var secondDelimiters = document.getElementsByClassName('secondDelimiter'); if (country === 'US') { for (let i = 0; i < 2; i++) { (monthSections[i]).style['order'] = '0'; (firstDelimiters[i]).style['order'] = '1'; (daySections[i]).style['order'] = '2'; (secondDelimiters[i]).style['order'] = '3'; (yearSections[i]).style['order'] = '4'; } } else if (country === 'JP') { for (let i = 0; i < 2; i++) { (yearSections[i]).style['order'] = '-1'; (secondDelimiters[i]).style['order'] = '0'; (monthSections[i]).style['order'] = '1'; (firstDelimiters[i]).style['order'] = '2'; (daySections[i]).style['order'] = '3'; } } else { for (let i = 0; i < 2; i++) { (daySections[i]).style['order'] = '-1'; (firstDelimiters[i]).style['order'] = '0'; (monthSections[i]).style['order'] = '1'; (secondDelimiters[i]).style['order'] = '2'; (yearSections[i]).style['order'] = '3'; } } } function createPermalinkContainer(asin, hostname) { var permalinkHref = getPermalink(hostname, asin); var permalinkContainer = document.querySelector('#permalink'); var permalink = document.createElement('a'); permalink.setAttribute('href', permalinkHref); permalink.innerText = permalinkHref; permalinkContainer.append(permalink); } function getPermalink(server, asin) { return server + '/dp/' + asin; } function triggerPricingFeedback( customerId, marketplaceId, asin, price, retailerType, retailerUrl, retailerName, retailerCity, retailerState, retailerPrice, retailerShipping, sampleDate ) { var dataCart = { ourPrice: parseInt(price), retailer: { type: retailerType, name: retailerName, city: retailerCity, state: retailerState, price: parseInt(retailerPrice), shippingCost: parseInt(retailerShipping), url: retailerUrl }, date: sampleDate + "T00:00:00.102Z" }; return new Promise((resolve, reject) => { A.$.ajax($("#aapiEndpoint").val() + "/api/marketplaces/" + marketplaceId + "/products/" + asin + "/feedback/pricing", { type: 'POST', headers: { 'Accept-Language': 'en-US', 'Accept': 'application/vnd.com.amazon.api+json; type="product.feedback.pricing/v1"', 'x-amzn-encrypted-slate-token': document.querySelector('meta[name="encrypted-slate-token"]')?.content, 'Content-Type': 'application/vnd.com.amazon.api+json; type="product.feedback.pricing.request/v1"', 'x-api-csrf-token': csrf }, data: JSON.stringify(dataCart), xhrFields: { withCredentials: true }, success: function (responseContent) { $("#pricingFeedback_thankcontent").innerText = "Success! " + responseContent.toString(); resolve(); }, error: function (err) { $("#pricingFeedback_thankcontent").innerText = "Error! " + err.toString(); reject(); } }) }) } function getAuthenticationPageURL(asin, hostname) { return hostname + '/ap/signin?_encoding=UTF8&openid.assoc_handle=usflex&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&openid.mode=checkid_setup&openid.ns=http://specs.openid.net/auth/2.0&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.pape.max_auth_age=0&openid.return_to=https://www.amazon.com/dp//'; } function getCurrentDay() { var date = new Date(); return date.getDate().toString(); } function getCurrentMonth() { var date = new Date(); return (date.getMonth() + 1).toString(); } function getCurrentYear() { var date = new Date(); return date.getFullYear().toString(); } function resetAlerts() { const elements = [ { id: "#onlineUrl", alertId: "#onlineUrl-missing-alert" }, { id: "#onlinePriceRaw", alertId: "#onlinePrice-missing-alert" }, { id: "#onlineShippingRaw", alertId: "#onlineShippingPrice-missing-alert" }, { id: "#offlineStoreName", alertId: "#offlineStoreName-missing-alert" }, { id: "#offlineCity", alertId: "#offlineCity-missing-alert" }, { id: "#offlinePriceRaw", alertId: "#offlinePriceRaw-missing-alert" } ]; for (const { id, alertId } of elements) { const element = document.querySelector(id); const alertElement = document.querySelector(alertId); if (element && alertElement) { element.classList.remove('a-form-error', 'a-form-normal'); alertElement.style.display = 'none'; } } } function setInitialStates(onlineMonth, currentMonth, offlineMonth, onlineDay, currentDate, offlineDay, onlineYear, currentYear, offlineYear, onlineStoreInputForm, offlineStoreInputForm, enableOfflineStoreRadio, enableOnlineStoreRadio, onlineCalendar, offlineCalendar, offlineStateMain, offlineState, note1) { onlineMonth.defaultValue = currentMonth; offlineMonth.defaultValue = currentMonth; onlineDay.defaultValue = currentDate; offlineDay.defaultValue = currentDate; onlineYear.defaultValue = currentYear; offlineYear.defaultValue = currentYear; var isStateRequired = document.querySelector('#isStateRequired'); var stateLabel = document.querySelector('#stateLabel') var stateValue = document.querySelector('#stateValue') var isStoreRequired = document.querySelector('#isStoreRequired'); var storeLabel = document.querySelector('#storeLabel') var storeValue = document.querySelector('#storeValue') if (isStateRequired.value === 'false') { stateLabel.style['display'] = 'none'; stateValue.style['display'] = 'none'; } if (isStoreRequired.value === 'false') { storeLabel.style['display'] = 'none'; storeValue.style['display'] = 'none'; } note1.style['display'] = 'none'; resetAlerts(); var onlineMonthOption = document.querySelector('#onlineMonthOptionDefault'); onlineMonthOption.innerText = currentMonth; var onlineMonthPrompt = document.querySelector('#onlineMonthPrompt'); onlineMonthPrompt.innerText = currentMonth; var offlineMonthOption = document.querySelector('#offlineMonthOptionDefault'); offlineMonthOption.innerText = currentMonth; var offlineMonthPrompt = document.querySelector('#offlineMonthPrompt'); offlineMonthPrompt.innerText = currentMonth; var onlineDateOption = document.querySelector('#onlineDateOptionDefault'); onlineDateOption.innerText = currentDate; var onlineDayPrompt = document.querySelector('#onlineDatePrompt'); onlineDayPrompt.innerText = currentDate; var offlineDateOption = document.querySelector('#offlineDateOptionDefault'); offlineDateOption.innerText = currentDate; var offlineDayPrompt = document.querySelector('#offlineDatePrompt'); offlineDayPrompt.innerText = currentDate; var onlineYearOption = document.querySelector('#onlineYearOptionDefault'); onlineYearOption.setAttribute('href', currentYear); onlineYearOption.innerText = currentYear; var onlineYearPrompt = document.querySelector('#onlineYearPrompt'); onlineYearPrompt.innerText = currentYear; var offlineYearOption = document.querySelector('#offlineYearOptionDefault'); offlineYearOption.setAttribute('href', currentYear); offlineYearOption.innerText = currentYear; var offlineYearPrompt = document.querySelector('#offlineYearPrompt'); offlineYearPrompt.innerText = currentYear; if (onlineMonth.children && offlineMonth.children && onlineDay.children && offlineDay.children) { onlineMonth.children[currentMonth].setAttribute('selected', currentMonth); offlineMonth.children[currentMonth].setAttribute('selected', currentMonth); onlineDay.children[currentDate].setAttribute('selected', currentDate); offlineDay.children[currentDate].setAttribute('selected', currentDate); } onlineStoreInputForm.style['display'] = 'none'; offlineStoreInputForm.style['display'] = 'none'; enableOfflineStoreRadio.checked = false; enableOnlineStoreRadio.checked = false; if (onlineCalendar.style && offlineCalendar.style) { onlineCalendar.style['display'] = 'block'; offlineCalendar.style['display'] = 'block'; } } function submitFeedback( customerId, marketplaceId, asin, price, onlineStoreInputForm, offlineStoreInputForm, onlineUrl, onlinePriceRaw, onlineShippingRaw, onlineDay, onlineMonth, offlineStoreName, offlineCity, offlineState, offlinePriceRaw, offlineDay, offlineMonth, thankYouDiv, errorDiv, submitButton, loadingGifDiv, errorMessages ) { errorDiv.innerHTML = ''; let cleanRetailerType, cleanRetailerUrl, cleanRetailerName, cleanRetailerCity, cleanRetailerState, cleanRetailerPrice, cleanRetailerShipping, cleanSampleDate; var currentYear = getCurrentYear(); if (onlineStoreInputForm.style['display'] === 'block') { var onlineValidity = validateOnlineInputs(onlineUrl, onlinePriceRaw, onlineShippingRaw, errorMessages); if (onlineValidity.valid) { cleanRetailerType = 'ONLINE'; cleanRetailerUrl = truncate(trim(onlineUrl), 300); cleanRetailerPrice = trim(onlinePriceRaw); cleanRetailerShipping = trim(onlineShippingRaw); if (!cleanRetailerShipping) { cleanRetailerShipping = '0'; } cleanSampleDate = formatDate( currentYear, onlineDay ? onlineDay : getCurrentDay(), onlineMonth ? onlineMonth : getCurrentMonth() ); } else { if (onlineValidity.error) { errorDiv.innerHTML = getErrorDiv(onlineValidity.error); } return null; } } else if (offlineStoreInputForm.style['display'] === 'block') { var offlineValidity = validateOfflineInputs( offlineStoreName, offlineCity, offlineState, offlinePriceRaw, errorMessages, marketplaceId ); if (offlineValidity.valid) { cleanRetailerType = 'OFFLINE'; cleanRetailerName = truncate(trim(offlineStoreName), 100); cleanRetailerCity = truncate(trim(offlineCity), 100); cleanRetailerState = truncate(trim(offlineState), 100); cleanRetailerPrice = trim(offlinePriceRaw); cleanRetailerShipping = '0'; cleanSampleDate = formatDate( currentYear, offlineDay ? offlineDay : getCurrentDay(), offlineMonth ? offlineMonth : getCurrentMonth() ); } else { if (offlineValidity.error) { errorDiv.innerHTML = getErrorDiv(offlineValidity.error); } return null; } } else { errorDiv.innerHTML = getErrorDiv(errorMessages.errorNoRetailerType); return null; } loadingGifDiv.innerHTML = getLoadingGifDiv(); if (price) price = parseFloat(price); return triggerPricingFeedback( customerId, marketplaceId, asin, price, cleanRetailerType, cleanRetailerUrl, cleanRetailerName, cleanRetailerCity, cleanRetailerState, parseFloat(cleanRetailerPrice), parseFloat(cleanRetailerShipping), cleanSampleDate ) .then(response => { errorDiv.innerHTML = ''; thankYouDiv.innerHTML = getThankYouDiv(errorMessages.thankFeedback); submitButton.style.display = 'none'; return response; }) .catch(err => { errorDiv.innerHTML = getErrorDiv(errorMessages.errorSubmission); return null; }); } function showError(element, elementAlert) { elementAlert.style['display'] = 'block'; element.classList.add('a-form-error'); } function isUrlPresentAndValid(url) { const onlineUrlElement = document.querySelector('#onlineUrl'); const onlineUrlAlertDiv = document.querySelector('#onlineUrl-missing-alert'); const urlAlert = document.querySelector('#urlAlert'); if (isEmptyValue(url)) { showError(onlineUrlElement, onlineUrlAlertDiv); $('#onlineUrl').attr("aria-invalid", "true"); $('#onlineUrl').attr("aria-describedby", "onlineUrl-missing-alert"); urlAlert.innerHTML = "URLを入力する";$('#onlineUrl').attr("aria-invalid", "true"); return false; } if (!isValidUrl(url)) { showError(onlineUrlElement, onlineUrlAlertDiv); $('#onlineUrl').attr("aria-invalid", "true"); $('#onlineUrl').attr("aria-describedby", "onlineUrl-missing-alert"); urlAlert.innerHTML = "有効なURLを入力してください。"; return false; } return true; } function isOnlinePriceThere(price) { const onlinePriceElement = document.querySelector('#onlinePriceRaw'); const onlinePriceElementAlert = document.querySelector('#onlinePrice-missing-alert'); const priceAlertOnline = document.querySelector('#priceAlertOnline'); if (isEmptyValue(price) || !isNumericPrice(price)) { $('#onlinePriceRaw').attr("aria-invalid", "true"); showError(onlinePriceElement, onlinePriceElementAlert); $('#onlinePriceRaw').attr("aria-describedby", "onlinePrice-missing-alert"); priceAlertOnline.innerHTML="[価格]欄には数値のみ使用してください。"; return false; } return true; } function isOnlineShippingPriceValid(shippingPrice) { const onlineShippingPriceElement = document.querySelector('#onlineShippingRaw'); const onlineShippingPriceElementAlert = document.querySelector('#onlineShippingPrice-missing-alert'); const priceShippingAlertOnline=document.querySelector('#priceShippingAlertOnline'); if (!isEmptyValue(shippingPrice) && !isNumericPrice(shippingPrice)) { $('#onlineShippingRaw').attr("aria-invalid", "true"); showError(onlineShippingPriceElement, onlineShippingPriceElementAlert); $('#onlineShippingRaw').attr("aria-describedby", "onlineShippingPrice-missing-alert"); priceShippingAlertOnline.innerHTML = "[価格]および[発送]欄には数値のみを入力してください。"; return false; } return true; } function validateOnlineInputs(url, onlinePrice, onlineShipping, errorMessages) { const isValidUrl = isUrlPresentAndValid(url); const isPriceValid = isOnlinePriceThere(onlinePrice); const isShippingValid = isOnlineShippingPriceValid(onlineShipping); if (!isValidUrl || !isPriceValid || !isShippingValid) { return { valid: false }; } return { valid: true }; } function isOfflineStoreNameValid(offlineStoreName) { const offlineStoreElement = document.querySelector('#offlineStoreName'); const offlineStoreElementAlert = document.querySelector('#offlineStoreName-missing-alert'); const storeAlert=document.querySelector('#storeAlert'); if (isEmptyValue(offlineStoreName)) { $('#offlineStoreName').attr("aria-invalid", "true"); $('#offlineStoreName').attr("aria-describedby", "offlineStoreName-missing-alert"); showError(offlineStoreElement, offlineStoreElementAlert); storeAlert.innerHTML="商品が販売された場所を選択してください。"; return false; } return true; } function isOfflineCityNameValid(offlineCity) { const offlineCityElement = document.querySelector('#offlineCity'); const offlineCityElementAlert = document.querySelector('#offlineCity-missing-alert'); const cityAlert=document.querySelector('#cityAlert'); if (isEmptyValue(offlineCity)) { $('#offlineCity').attr("aria-invalid", "true"); $('#offlineCity').attr("aria-describedby", "offlineCity-missing-alert"); showError(offlineCityElement, offlineCityElementAlert); cityAlert.innerHTML="市区町村を指定してください" return false; } return true; } function isOfflinePriceValid(offlinePrice) { const offlinePriceElement = document.querySelector('#offlinePriceRaw'); const offlinePriceElementAlert = document.querySelector('#offlinePriceRaw-missing-alert'); const priceAlertOffline = document.querySelector('#priceAlertOffline'); if (isEmptyValue(offlinePrice) || !isNumericPrice(offlinePrice)) { $('#offlinePriceRaw').attr("aria-invalid", "true"); $('#offlinePriceRaw').attr("aria-describedby", "offlinePriceRaw-missing-alert"); showError(offlinePriceElement, offlinePriceElementAlert); priceAlertOffline.innerHTML="[価格]欄には数値のみ使用してください。"; return false; } return true; } function validateOfflineInputs(offlineStoreName, offlineCity, offlineState, offlinePrice, errorMessages, marketPlaceId) { const isStoreNameValid = isOfflineStoreNameValid(offlineStoreName); const isOfflineCityValid = isOfflineCityNameValid(offlineCity); const isPriceValid = isOfflinePriceValid(offlinePrice); if (!isStoreNameValid || !isOfflineCityValid || !isPriceValid) { return { valid: false }; } return { valid: true }; } function getErrorDiv(errorMsg) { return ( '<div class="a-box a-alert a-alert-error a-spacing-mini" aria-live="assertive" role="alert">\n' + ' <div class="a-box-inner a-alert-container"><i class="a-icon a-icon-alert"></i><div class="a-alert-content">' + errorMsg + '</div></div>\n' + ' </div>' ); } function getThankYouDiv(thankMsg) { return ( '<div class="a-box a-alert a-alert-success a-spacing-mini">' + '<div class="a-box-inner a-alert-container"><i class="a-icon a-icon-alert"></i><div class="a-alert-content">' + thankMsg + '</div></div></div>\n' + '<p></p><hr/><p></p>' ); } function getLoadingGifDiv() { return '<img src="https://images-na.ssl-images-amazon.com/images/G/01/x-locale/communities/tags/snake._CB485935600_.gif" class="loadingSymbolImage" width="16" height="16" border="0"/>'; } function isValidUrl(url) { if (!url) { return false; } var encodedUrl = encodeURI(url); return encodedUrl.match( /^(https?:\/\/)?(([a-z0-9-]|%[A-F0-9]{2})+\.)+(([a-z]|%[A-F0-9]{2})([a-z0-9]|%[A-F0-9]{2})*)(:[0-9]+)?(\/[a-z0-9;:,~!+#@&=%\/$\.?_-]+)?$/ ); } function isNumericPrice(price) { if (!price) { return false; } return price.match(/^([0-9]+\.?[0-9]*)$|^([0-9]*\.[0-9]+)$/); } function isEmptyValue(input) { return !input || input.length === 0 || input.match(/^\s*$/); } function truncate(input, length) { if (!input) { return ''; } else { return input.substr(0, length); } } function formatDate(year, date, month) { return year + '-' + month + '-' + date; } function trim(input) { if (!input) { return ''; } else { return input.trim(); } } function resetModalToInitialState(currentMonth, currentDate, currentYear) { var enableOnlineStoreRadio = document.querySelector('#pricingFeedback_onlineRadio'); var enableOfflineStoreRadio = document.querySelector('#pricingFeedback_offlineRadio'); var onlineStoreInputForm = document.querySelector('#pricingFeedback_onlineInput'); var offlineStoreInputForm = document.querySelector('#pricingFeedback_offlineInput'); var onlineUrl = document.querySelector('#onlineUrl'); var onlinePriceRaw = document.querySelector('#onlinePriceRaw'); var onlineShippingRaw = document.querySelector('#onlineShippingRaw'); var onlineDay = document.querySelector('#onlineDay'); var onlineMonth = document.querySelector('#onlineMonth'); var onlineYear = document.querySelector('#onlineYear'); var onlineCalendar = document.querySelector('#onlineCalendar'); var note1 = document.querySelector('#note1'); var offlineStoreName = document.querySelector('#offlineStoreName'); var offlineCity = document.querySelector('#offlineCity'); var offlineState = document.querySelector('#offlineState'); var offlinePriceRaw = document.querySelector('#offlinePriceRaw'); var offlineDay = document.querySelector('#offlineDay'); var offlineMonth = document.querySelector('#offlineMonth'); var offlineYear = document.querySelector('#offlineYear'); var offlineCalendar = document.querySelector('#offlineCalendar'); var thankYouDiv = document.querySelector('#pricingFeedback_thank'); var errorDiv = document.querySelector('#pricingFeedback_error'); var submitButton = document.querySelector('#pricingFeedback_submit'); var loadingGifDiv = document.querySelector('#loading'); var stateDefaultOption = document.querySelector('#stateDefaultOption'); var stateDefaultPrompt = document.querySelector('#stateDefaultPrompt'); var offlineStateMain = document.querySelector('#offlineStateMain'); var storeDefaultOption = document.querySelector('#storeDefaultOption'); var storeDefaultPrompt = document.querySelector('#storeDefaultPrompt'); if (thankYouDiv) { thankYouDiv.innerHTML = ''; } if (errorDiv) { errorDiv.innerHTML = ''; } if (loadingGifDiv) { loadingGifDiv.innerHTML = ''; } if (submitButton) { submitButton.style.display = 'block'; } onlineUrl.value = ''; onlinePriceRaw.value = ''; onlineShippingRaw.value = ''; offlineStoreName.value = ''; offlineCity.value = ''; offlineState.value = ''; offlinePriceRaw.value = ''; stateDefaultOption.innerHTML = $("#selectProvince").val(); stateDefaultPrompt.innerHTML = $("#selectProvince").val(); storeDefaultOption.innerHTML = "Enter the store name where you found this product"; storeDefaultPrompt.innerHTML = "Enter the store name where you found this product"; setInitialStates( onlineMonth, currentMonth, offlineMonth, onlineDay, currentDate, offlineDay, onlineYear, currentYear, offlineYear, onlineStoreInputForm, offlineStoreInputForm, enableOfflineStoreRadio, enableOnlineStoreRadio, onlineCalendar, offlineCalendar, offlineStateMain, offlineState, note1 ); } });