同梱物:
・Primer Wipe
・For Now Ink ™ ステッカー
・説明書
サイズ:2.0 x 2.0 inches
Deimos is one of the two moons of the planet Mars. It is the smaller and outer of the two natural satellites of the planet.
');
var data = {
'product_id': 4846201045094,
'_sid': sswCookie('hesid'),
'page': 1,
'isPartially': true,
'include_site_review': 0,
'rate': rate,
'order': order
};
ssw.get(sswProxyUrl + '/lite2/review/index', data, function (response) {
var last_index = ssw('#recomends_list').find('.ssw-item').length;
if (ssw('#recomends_list').hasClass('ssw-recomends-list-feed')) {
ssw('#ssw-review-masonry-items').html(response);
sswMasonryReviewItems.reDraw();
} else {
ssw('#recomends_list').html(response);
}
sswReviewsContent[rate + '_' + order] = response;
var show_load_more = true;
var $first_item = ssw('#recomends_list .ssw-item').first();
if (!$first_item.length || parseInt($first_item.data('total-pages')) == 1) {
show_load_more = false;
}
if (show_load_more) {
ssw('#ssw-recommends-loadmore-wrapper').show();
ssw('#ssw-recommends-loadmore').show();
}
sswProductReviewDateToLocale();
sswLazyLoad(document.querySelector('#recomends_list'), '.ssw-item .ssw-recommend-image-wrapper a', {
data_attr: 'data-thumb'
});
});
}
}
function setCssProductReviews() {
// Set container margins if widget width equal to window width
if (ssw('#ssw-widget-recommends-html').width() == ssw(window).width()) {
ssw('#ssw-widget-recommends-html').addClass('ssw-review-side-margins');
}
// Reset styles
ssw_review_container_width = ssw('#ssw-widget-recommends-html').width();
ssw('#ssw-widget-recommends-html .ssw-reviews-header').removeClass('ssw-small').removeClass('ssw-medium');
var title_width = ssw('#ssw-widget-recommends-html h3').outerWidth(true) || 0; // Widget title "Reviews" width
var avg_width = ssw('#ssw-widget-recommends-html .ssw-stars-averg').outerWidth(true); // Icons and text "based on ..." width
var add_review_width = ssw('#ssw-widget-recommends-html .ssw-add-recommend').outerWidth(true); // "Add review" link width
if (title_width + avg_width + add_review_width > ssw_review_container_width) {
if (avg_width + add_review_width > ssw_review_container_width) {
// Elements to center
ssw('#ssw-widget-recommends-html .ssw-reviews-header').addClass('ssw-small');
} else {
// Title to display block
ssw('#ssw-widget-recommends-html .ssw-reviews-header').addClass('ssw-medium');
}
}
if (typeof ssw_social_buttons_count !== 'undefined') {
if (ssw_review_container_width ssw_social_buttons_count * 45 + 280) {
if (!ssw('#ssw-review-simple-html').hasClass('ssw-review-medium')) {
ssw('#ssw-review-simple-html').removeClass('ssw-review-small').removeClass('ssw-review-smaller').addClass('ssw-review-medium');
}
}
else if (ssw_review_container_width ssw_social_buttons_count * 45 + 130) {
if (!ssw('#ssw-review-simple-html').hasClass('ssw-review-small')) {
ssw('#ssw-review-simple-html').removeClass('ssw-review-medium').removeClass('ssw-review-smaller').addClass('ssw-review-small');
}
}
else if (ssw_review_container_width 0) {
vote_count--;
} else if (unvote_count > 0) {
unvote_count--;
}
localStorage.removeItem(answer_key);
}
// change vote
else {
if (data.answer) {
vote_count++;
if (unvote_count > 0) {
unvote_count--;
}
} else {
unvote_count++;
if (vote_count > 0){
vote_count--;
}
}
data.is_change_vote = 1;
localStorage.setItem(answer_key, data.answer);
}
}
// new vote
else {
data.answer ? vote_count++ : unvote_count++;
localStorage.setItem(answer_key, data.answer);
}
$helpfulBox.data('vote', vote_count);
$helpfulBox.data('unvote', unvote_count);
$helpfulBox.find('.ssw-review-helpful-vote-count').html(vote_count);
$helpfulBox.find('.ssw-review-helpful-unvote-count').html(unvote_count);
if (vote_count) {
$helpfulBox.find('.ssw-review-helpful-vote-count').removeClass('ssw-hide');
} else {
$helpfulBox.find('.ssw-review-helpful-vote-count').addClass('ssw-hide');
}
if (unvote_count) {
$helpfulBox.find('.ssw-review-helpful-unvote-count').removeClass('ssw-hide');
} else {
$helpfulBox.find('.ssw-review-helpful-unvote-count').addClass('ssw-hide');
}
ssw.post(sswProxyUrl + '/lite2/review/uservote', data, function (response) {
});
if(vote_count i').hover(
function () {
var index = ssw(this).data('value');
var ssw_rate = ssw('#ssw-widget-recommends-html .ssw-stars-avg').data('avg-rate');
if (index > ssw_rate) {
ssw('#ssw-widget-recommends-html .ssw-stars-avg > i:lt(' + index + ')').removeClass('ssw-icon-star-empty').removeClass('ssw-icon-star-half-alt').addClass('ssw-icon-star');
}
}, function () {
var ssw_rate = ssw('#ssw-widget-recommends-html .ssw-stars-avg').data('avg-rate');
if (ssw_rate > 0) {
ssw('#ssw-widget-recommends-html .ssw-stars-avg > i:gt(' + (Math.floor(ssw_rate) - 1) + ')').removeClass('ssw-icon-star').addClass('ssw-icon-star-empty');
if (ssw_rate - Math.floor(ssw_rate) > 0.74) {
ssw('#ssw-widget-recommends-html .ssw-stars-avg > i:eq(' + Math.floor(ssw_rate) + ')').removeClass('ssw-icon-star-empty').addClass('ssw-icon-star');
}
else if (ssw_rate - Math.floor(ssw_rate) > 0.24) {
ssw('#ssw-widget-recommends-html .ssw-stars-avg > i:eq(' + Math.floor(ssw_rate) + ')').removeClass('ssw-icon-star-empty').addClass('ssw-icon-star-half-alt');
}
}
else {
ssw('#ssw-widget-recommends-html .ssw-stars-avg > i').removeClass('ssw-icon-star').addClass('ssw-icon-star-empty');
}
}
);
ssw('#ssw-widget-recommends-html .ssw-stars-avg > i').click(function () {
if (ssw('#ssw-widget-recommends-html .ssw-add-recommend > a').length && ssw('#ssw-widget-recommends-html .ssw-add-recommend > a').attr('onclick')) {
ssw('#ssw-widget-recommends-html .ssw-add-recommend > a').click();
}
else if (ssw('#ssw-widget-recommends-html #add_recommend').length && ssw('#ssw-review-simple-html:hidden').length) {
ssw('#ssw-simple-add-review-form .ssw-stars > i:lt(' + ssw(this).data('value') + ')').removeClass('ssw-icon-star-empty').addClass('ssw-icon-star');
ssw('#ssw-simple-add-review-form .ssw-stars > i:gt(' + (ssw(this).data('value') - 1) + ')').removeClass('ssw-icon-star').addClass('ssw-icon-star-empty');
ssw('#ssw-simple-add-review-form').find('input[name="rate"]').val(ssw(this).data('value'));
ssw('#ssw-review-simple-html').slideDown();
}
});
ssw('#add_recommend, a.add_recommend').click(function () {
if (typeof sswApp.customer === 'undefined' && !ssw_guests_enabled) {
sswLoginRequired('レビューを投稿するにはログインしてください', ssw(this));
} else {
if (ssw('#ssw-review-simple-html:hidden').length) {
ssw('#ssw-review-simple-html').slideDown();
}
else {
ssw('#ssw-review-simple-html').slideUp();
}
}
});
ssw('#ssw-review-simple-html .ssw-stars > i').hover(
function () {
var sswReviewIndex = ssw(this).data('value');
var sswReviewRate = ssw('#ssw-review-simple-html').find('input[name="rate"]').val();
if (sswReviewIndex > sswReviewRate) {
ssw('#ssw-review-simple-html .ssw-stars > i:lt(' + sswReviewIndex + ')').removeClass('ssw-icon-star-empty').addClass('ssw-icon-star');
}
}, function () {
var sswReviewRate = parseInt(ssw('#ssw-review-simple-html').find('input[name="rate"]').val());
if (sswReviewRate) {
ssw('#ssw-review-simple-html .ssw-stars > i:gt(' + (sswReviewRate - 1) + ')').removeClass('ssw-icon-star').addClass('ssw-icon-star-empty');
}
else {
ssw('#ssw-review-simple-html .ssw-stars > i').removeClass('ssw-icon-star').addClass('ssw-icon-star-empty');
}
}
);
ssw('#ssw-review-simple-html .ssw-stars > i').click(function () {
ssw('#ssw-review-simple-html').find('input[name="rate"]').val(ssw(this).data('value'));
ssw('#ssw-review-simple-html .ssw-stars > i:lt(' + ssw(this).data('value') + ')').removeClass('ssw-icon-star-empty').addClass('ssw-icon-star');
ssw('#ssw-review-simple-html .ssw-stars > i:gt(' + (ssw(this).data('value') - 1) + ')').removeClass('ssw-icon-star').addClass('ssw-icon-star-empty');
if (ssw_guests_enabled && typeof localStorage !== "undefined") {
localStorage.ssw_reviews_product_rate = ssw(this).data('value');
}
});
if (ssw_guests_enabled && typeof sswApp.customer === 'undefined') {
var ssw_social_buttons_count = 1;
ssw('#ssw-simple-add-review-form textarea[name="body"]').on('keyup change', function () {
if (ssw(this).val() != '' && ssw('#ssw-simple-add-review-form .ssw-group1:hidden').length) {
ssw('#ssw-simple-add-review-form input[name="email"]').attr('required', 'required');
ssw('#ssw-simple-add-review-form .ssw-control-group.guest-group').removeClass('guest-group');
ssw('#ssw-simple-add-review-form .ssw-group1').fadeIn();
}
if (typeof(localStorage) !== "undefined") {
localStorage.ssw_reviews_product_body = ssw(this).val();
}
});
ssw('#ssw-simple-add-review-form input[name="email"]').on('keyup change', function () {
if (ssw(this).val() != '' && ssw('#ssw-simple-add-review-form .ssw-group2:hidden').length) {
ssw('#ssw-simple-add-review-form input[name="name"]').attr('required', 'required');
ssw('#ssw-simple-add-review-form .ssw-group2').fadeIn();
}
});
}
else if (typeof localStorage !== "undefined") {
if (typeof localStorage.ssw_reviews_product_rate !== "undefined" || typeof localStorage.ssw_reviews_product_body !== "undefined") {
if (typeof localStorage.ssw_reviews_product_rate !== "undefined") {
ssw('#ssw-review-simple-html').find('input[name="rate"]').val(localStorage.ssw_reviews_product_rate);
ssw('#ssw-review-simple-html .ssw-stars > i:lt(' + localStorage.ssw_reviews_product_rate + ')').removeClass('ssw-icon-star-empty').addClass('ssw-icon-star');
ssw('#ssw-review-simple-html .ssw-stars > i:gt(' + (localStorage.ssw_reviews_product_rate - 1) + ')').removeClass('ssw-icon-star').addClass('ssw-icon-star-empty');
localStorage.removeItem("ssw_reviews_product_rate");
}
if (typeof localStorage.ssw_reviews_product_body !== "undefined") {
ssw('#ssw-review-simple-html textarea[name="body"]').val(localStorage.ssw_reviews_product_body);
localStorage.removeItem("ssw_reviews_product_body");
}
if (ssw('#ssw-review-simple-html:hidden').length) {
ssw('html, body').scrollTop(ssw("#ssw-widget-recommends-html").offset().top - 40);
ssw('#ssw-review-simple-html').slideDown();
}
}
}
if (!window.sswCssLoaded) {
window.addEventListener('sswcssload', function () {
setCssProductReviews();
});
} else {
setCssProductReviews();
}
ssw(window).on("load", function () {
setCssProductReviews();
});
ssw(window).resize(function () {
if (ssw_review_container_width != ssw('#ssw-widget-recommends-html').width()) {
setCssProductReviews();
}
});
ssw(window).bind("orientationchange", setCssProductReviews());
if (!ssw_review_container_width) {
ssw('ul > li').click(function () {
if (!ssw(this).closest('#ssw-widget-recommends-html').length) {
ssw('#ssw-widget-recommends-html').css('opacity', 0);
setTimeout(function () {
if (ssw('#ssw-widget-recommends-html').width()) {
setCssProductReviews();
if (typeof sswMasonryReviewItems !== 'undefined') {
sswMasonryReviewItems.onContainerResize();
}
ssw('#ssw-widget-recommends-html').css('opacity', 1);
}
}, 100);
}
});
}
ssw('#ssw-simple-add-review-form').submit(function () {
var sswReviewRate = parseInt(ssw(this).find('input[name="rate"]').val());
if (!sswReviewRate) {
var reviewWarningPopover = ssw(this).find('.ssw-stars').data('ssw.sswPopover');
if (reviewWarningPopover == null) {
reviewWarningPopover = ssw(this).find('.ssw-stars').sswPopover({
trigger: "manual",
placement: "bottom",
content: "\u8a55\u4fa1\u3057\u3066\u304f\u3060\u3055\u3044",
ssw_validator: true,
template: "
"
});
}
ssw(this).find('.ssw-stars').sswPopover('show');
if (!sswIsScrolledIntoView(ssw(this).find('.ssw-stars'))) {
ssw('html, body').scrollTop(ssw(this).find('.ssw-stars').offset().top - 40);
}
return false;
}
var warningAlertForPost = ssw('#ssw-simple-add-review-form .ssw-group1.ssw-title-for-free:not(.ssw-hide) .ssw-alert.ssw-alert-warning').length;
if(warningAlertForPost) {
ssw(this).find('input[type="submit"]').blur();
return false;
}
var data = {
'body': ssw(this).find('textarea[name="body"]').val(),
'title': ssw(this).find('input[name="title"]').val(),
'rate': sswReviewRate,
'_sid': sswCookie('hesid'),
'hash_key': sswCookie('hash_key'),
'product_id': 4846201045094,
'images': recommendImages
};
if (ssw_guests_enabled) {
data.guests_enabled = 1;
data.name = ssw(this).find('input[name="name"]').val();
data.email = ssw(this).find('input[name="email"]').val();
}
var $addReviewButton = ssw(this).find('input[type="submit"]');
$addReviewButton.attr('disabled', true);
$addReviewButton.addClass('disabled');
if(!ssw('#ssw-simple-add-review-form .ssw-group1.ssw-title-for-free:not(.ssw-hide)').length) {
$addReviewButton.val($addReviewButton.data('loading-text'));
}
if (typeof localStorage !== "undefined") {
if (typeof localStorage.ssw_reviews_product_rate !== "undefined") {
localStorage.removeItem("ssw_reviews_product_rate");
}
if (typeof localStorage.ssw_reviews_product_body !== "undefined") {
localStorage.removeItem("ssw_reviews_product_body");
}
}
if (ssw(this).find('.ssw-custom-question').length) {
var form_data = sswGetFormDataAsJSON(ssw(this));
if (typeof form_data.answers !== 'undefined') {
data.answers = form_data.answers;
}
if (typeof form_data.answer_rates !== 'undefined') {
data.answer_rates = form_data.answer_rates;
}
data.review_custom_questions = [];
}
ssw.post(sswProxyUrl + '/lite2/review/create', data, function (response) {
sswDispatchEvent('sswreviewcreateafter', {
detail: {
requestData: data,
response: response
},
bubbles: true,
cancelable: false
});
var type = 'warning';
if (response.success) {
if (response.new_recommendation) {
type = 'success';
}
if (response.new_recommendation && parseInt(response.new_recommendation.status) != 0) {
if (typeof response.item_content !== 'undefined' && response.item_content) {
if (ssw('#recomends_list').hasClass('ssw-recomends-list-feed')) {
ssw('#recomends_list').find('.ssw-masonry-column').first().prepend(response.item_content);
} else {
ssw('#recomends_list').prepend(response.item_content);
}
sswProductReviewDateToLocale();
} else {
var avg_rate = parseFloat(ssw('#ssw-widget-recommends-html .ssw-stars-avg').data('avg-rate'));
var rate_count = parseInt(ssw('#ssw-widget-recommends-html .ssw-stars-avg').data('rate-count'));
var ssw_rate_count = parseInt(ssw('#ssw-widget-recommends-html .ssw-rate-count span').text());
avg_rate = (avg_rate * rate_count + parseInt(data.rate)) / (rate_count + 1);
ssw('#ssw-widget-recommends-html #rate_count').html(rate_count + 1);
ssw('#ssw-widget-recommends-html .ssw-rate-count span').text(ssw_rate_count + 1);
ssw('#ssw-widget-recommends-html .ssw-stars-avg > i:gt(' + (Math.floor(avg_rate) - 1) + ')').removeClass('ssw-icon-star').removeClass('ssw-icon-star-half-alt').addClass('ssw-icon-star-empty');
if (avg_rate - Math.floor(avg_rate) > 0.74) {
ssw('#ssw-widget-recommends-html .ssw-stars-avg > i:eq(' + Math.floor(avg_rate) + ')').removeClass('ssw-icon-star-empty').removeClass('ssw-icon-star-half-alt').addClass('ssw-icon-star');
}
else if (avg_rate - Math.floor(avg_rate) > 0.24) {
ssw('#ssw-widget-recommends-html .ssw-stars-avg > i:eq(' + Math.floor(avg_rate) + ')').removeClass('ssw-icon-star-empty').addClass('ssw-icon-star-half-alt');
}
var s = '
';
for (var i = 0; i ';
}
for (var i = response.new_recommendation.rate; i ';
}
s += '
';
if (response.new_recommendation.images && response.new_recommendation.images.length > 0) {
var iw = ssw('');
for (var i in response.new_recommendation.images) {
var tiw = ssw('');
var tia = ssw('');
tia.css('background-image', 'url(' + response.new_recommendation.images[i] + ')');
tia.data('src', response.new_recommendation.images[i]);
tiw.append(tia);
iw.append(tiw).append(" ");
}
}
var ssw_item = ssw('