\\n <title>电脑版黑胶唱片音乐播放器</title>
\\n <style>
\\n @import url(https://fonts.googleapis.com/css?family=Raleway:400,300,700);
\\n *, *:before, *:after {
\\n box-sizing: border-box;
\\n }
\\n
\\n body {
\\n background-color: #fef29c;
\\n color: #515044;
\\n font-family: \\"Raleway\\", sans-serif;
\\n min-height: 100vh;
\\n display: flex;
\\n justify-content: center;
\\n align-items: center;
\\n margin: 0;
\\n }
\\n
\\n .music-player-container {
\\n -webkit-transform: translate(-50%, -50%);
\\n -moz-transform: translate(-50%, -50%);
\\n -ms-transform: translate(-50%, -50%);
\\n -o-transform: translate(-50%, -50%);
\\n transform: translate(-50%, -50%);
\\n display: inline-block;
\\n height: 370px;
\\n position: absolute;
\\n min-width: 460px;
\\n left: 50%;
\\n top: 50%;
\\n }
\\n .music-player-container:after {
\\n -webkit-filter: blur(8px);
\\n filter: blur(8px);
\\n background-color: rgba(0, 0, 0, 0.8);
\\n bottom: -2px;
\\n content: \\" \\";
\\n display: block;
\\n height: 10px;
\\n left: 19px;
\\n position: absolute;
\\n transform: rotate(-3deg);
\\n width: 70%;
\\n z-index: 0;
\\n }
\\n
\\n .music-player {
\\n background-color: #fff;
\\n height: 370px;
\\n padding: 40px 250px 40px 40px;
\\n position: absolute;
\\n text-align: right;
\\n width: 460px;
\\n z-index: 3;
\\n }
\\n
\\n .player-content-container {
\\n -webkit-transform: translateY(-50%);
\\n -moz-transform: translateY(-50%);
\\n -ms-transform: translateY(-50%);
\\n -o-transform: translateY(-50%);
\\n transform: translateY(-50%);
\\n top: 50%;
\\n position: relative;
\\n }
\\n
\\n .artist-name {
\\n font-size: 24px;
\\n font-weight: 200;
\\n margin: 0 0 0.75em 0;
\\n white-space: nowrap;
\\n overflow: hidden;
\\n text-overflow: ellipsis;
\\n max-width: 170px;
\\n }
\\n
\\n .album-title {
\\n font-weight: 200;
\\n font-size: 18px;
\\n margin: 0 0 1.75em 0;
\\n white-space: nowrap;
\\n overflow: hidden;
\\n text-overflow: ellipsis;
\\n max-width: 170px;
\\n }
\\n
\\n .song-title {
\\n font-size: 28px;
\\n font-weight: normal;
\\n margin: 0 0 0.5em 0;
\\n white-space: nowrap;
\\n overflow: hidden;
\\n text-overflow: ellipsis;
\\n max-width: 170px;
\\n cursor: pointer;
\\n transition: all 0.3s ease;
\\n position: relative;
\\n padding: 5px 0;
\\n }
\\n
\\n .song-title:hover {
\\n color: #878787;
\\n }
\\n
\\n .song-title::after {
\\n content: \\"点击打开链接\\";
\\n position: absolute;
\\n bottom: -20px;
\\n left: 0;
\\n font-size: 10px;
\\n opacity: 0;
\\n transition: opacity 0.3s ease;
\\n background: rgba(0,0,0,0.7);
\\n color: white;
\\n padding: 2px 5px;
\\n border-radius: 3px;
\\n white-space: nowrap;
\\n }
\\n
\\n .song-title:hover::after {
\\n opacity: 1;
\\n }
\\n
\\n .album {
\\n box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.65);
\\n height: 315px;
\\n margin-left: 250px;
\\n margin-top: 27px;
\\n position: relative;
\\n width: 315px;
\\n z-index: 10;
\\n }
\\n
\\n .album-art {
\\n height: 315px;
\\n position: relative;
\\n width: 315px;
\\n z-index: 10;
\\n background-size: cover;
\\n background-position: center;
\\n }
\\n
\\n .vinyl {
\\n -webkit-animation: spin 2s linear infinite;
\\n -moz-animation: spin 2s linear infinite;
\\n animation: spin 2s linear infinite;
\\n -webkit-transition: all 500ms;
\\n -moz-transition: all 500ms;
\\n transition: all 500ms;
\\n background-position: center, center;
\\n background-size: cover, 40% auto;
\\n background-repeat: no-repeat;
\\n border-radius: 100%;
\\n box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
\\n height: 300px;
\\n left: 0;
\\n position: absolute;
\\n top: 5px;
\\n width: 300px;
\\n z-index: 5;
\\n will-change: transform, left;
\\n animation-play-state: paused; /* 初始状态为暂停 */
\\n }
\\n .is-playing .vinyl {
\\n left: 52%;
\\n animation-play-state: running; /* 播放时运行动画 */
\\n }
\\n
\\n .music-player-controls {
\\n text-align: center;
\\n }
\\n
\\n [class^=control-] {
\\n -webkit-filter: brightness(95%);
\\n filter: brightness(95%);
\\n border-radius: 100%;
\\n display: inline-block;
\\n height: 44px;
\\n margin: 0 3px;
\\n width: 44px;
\\n }
\\n [class^=control-]:hover {
\\n -webkit-filter: brightness(85%);
\\n filter: brightness(85%);
\\n cursor: pointer;
\\n }
\\n
\\n .control-play {
\\n background: transparent url(\\"https://s3-us-west-2.amazonaws.com/s.cdpn.io/83141/play.svg\\") center/cover no-repeat;
\\n }
\\n .is-playing .control-play {
\\n background: transparent url(\\"https://s3-us-west-2.amazonaws.com/s.cdpn.io/83141/pause.svg\\") center/cover no-repeat;
\\n }
\\n
\\n .control-forwards {
\\n background: transparent url(\\"https://s3-us-west-2.amazonaws.com/s.cdpn.io/83141/forwards.svg\\") center/cover no-repeat;
\\n }
\\n
\\n .control-back {
\\n background: transparent url(\\"https://s3-us-west-2.amazonaws.com/s.cdpn.io/83141/backwards.svg\\") center/cover no-repeat;
\\n }
\\n
\\n @-webkit-keyframes spin {
\\n 0% {
\\n -webkit-transform: rotate(0deg);
\\n }
\\n 100% {
\\n -webkit-transform: rotate(360deg);
\\n }
\\n }
\\n @-moz-keyframes spin {
\\n 0% {
\\n -moz-transform: rotate(0deg);
\\n }
\\n 100% {
\\n -moz-transform: rotate(360deg);
\\n }
\\n }
\\n @keyframes spin {
\\n 0% {
\\n -webkit-transform: rotate(0deg);
\\n -moz-transform: rotate(0deg);
\\n -ms-transform: rotate(0deg);
\\n -o-transform: rotate(0deg);
\\n transform: rotate(0deg);
\\n }
\\n 100% {
\\n -webkit-transform: rotate(360deg);
\\n -moz-transform: rotate(360deg);
\\n -ms-transform: rotate(360deg);
\\n -o-transform: rotate(360deg);
\\n transform: rotate(360deg);
\\n }
\\n }
\\n
\\n /* 播放控制面板 */
\\n .player-controls {
\\n margin-top: 20px;
\\n display: flex;
\\n flex-direction: column;
\\n align-items: center;
\\n }
\\n
\\n .progress-container {
\\n width: 200px;
\\n height: 4px;
\\n background: #d3d3d3;
\\n border-radius: 2px;
\\n margin-bottom: 8px;
\\n cursor: pointer;
\\n position: relative;
\\n }
\\n
\\n .progress-bar {
\\n height: 100%;
\\n background: #515044;
\\n border-radius: 2px;
\\n transition: width 0.1s linear;
\\n }
\\n
\\n .time-display {
\\n font-size: 14px;
\\n color: #666;
\\n width: 100%;
\\n display: flex;
\\n justify-content: space-between;
\\n }
\\n
\\n .volume-container {
\\n display: flex;
\\n align-items: center;
\\n margin-top: 10px;
\\n width: 200px;
\\n }
\\n
\\n .volume-icon {
\\n margin-right: 10px;
\\n width: 20px;
\\n text-align: center;
\\n }
\\n
\\n .volume-slider {
\\n flex: 1;
\\n height: 4px;
\\n background: #d3d3d3;
\\n border-radius: 2px;
\\n cursor: pointer;
\\n position: relative;
\\n }
\\n
\\n .volume-level {
\\n height: 100%;
\\n background: #515044;
\\n border-radius: 2px;
\\n }
\\n
\\n .playlist-btn {
\\n background: none;
\\n border: none;
\\n color: #515044;
\\n cursor: pointer;
\\n font-size: 14px;
\\n margin-top: 15px;
\\n text-decoration: underline;
\\n padding: 5px 10px;
\\n border-radius: 4px;
\\n transition: all 0.3s ease;
\\n }
\\n
\\n .playlist-btn:hover {
\\n background: rgba(52, 152, 219, 0.1);
\\n }
\\n
\\n /* 播放列表样式 */
\\n .playlist-container {
\\n position: fixed;
\\n top: 0;
\\n left: 0;
\\n right: 0;
\\n bottom: 0;
\\n background: rgba(0,0,0,0.7);
\\n display: flex;
\\n justify-content: center;
\\n align-items: center;
\\n z-index: 100;
\\n opacity: 0;
\\n pointer-events: none;
\\n transition: opacity 0.3s ease;
\\n }
\\n
\\n .playlist-container.active {
\\n opacity: 1;
\\n pointer-events: all;
\\n }
\\n
\\n .playlist-content {
\\n background: #fff;
\\n width: 80%;
\\n max-width: 500px;
\\n max-height: 80vh;
\\n padding: 20px;
\\n border-radius: 8px;
\\n overflow-y: auto;
\\n box-shadow: 0 5px 25px rgba(0,0,0,0.5);
\\n }
\\n
\\n .playlist-header {
\\n font-size: 24px;
\\n margin-bottom: 15px;
\\n color: #515044;
\\n border-bottom: 1px solid #ddd;
\\n padding-bottom: 10px;
\\n display: flex;
\\n justify-content: space-between;
\\n align-items: center;
\\n }
\\n
\\n .playlist-item {
\\n padding: 12px;
\\n border-bottom: 1px solid #eee;
\\n cursor: pointer;
\\n display: flex;
\\n justify-content: space-between;
\\n align-items: center;
\\n }
\\n
\\n .playlist-item:hover {
\\n background: #f0f0f0;
\\n }
\\n
\\n .playlist-item.active {
\\n background: #fef29c;
\\n font-weight: bold;
\\n }
\\n
\\n .playlist-info {
\\n flex: 1;
\\n }
\\n
\\n .song-name {
\\n font-size: 16px;
\\n margin-bottom: 5px;
\\n cursor: pointer;
\\n color: #000000;
\\n transition: all 0.2s ease;
\\n }
\\n
\\n .song-name:hover {
\\n text-decoration: underline;
\\n color: #878787;
\\n }
\\n
\\n .song-singer {
\\n font-size: 14px;
\\n color: #666;
\\n }
\\n
\\n .close-btn {
\\n position: absolute;
\\n top: 20px;
\\n right: 20px;
\\n background: transparent;
\\n border: none;
\\n color: white;
\\n font-size: 24px;
\\n cursor: pointer;
\\n transition: all 0.3s ease;
\\n }
\\n
\\n .close-btn:hover {
\\n transform: scale(1.2);
\\n color: #f1c40f;
\\n }
\\n
\\n .song-link-btn {
\\n background: #5c5c5c;
\\n color: white;
\\n border: none;
\\n border-radius: 4px;
\\n padding: 5px 10px;
\\n cursor: pointer;
\\n font-size: 12px;
\\n transition: all 0.3s ease;
\\n }
\\n
\\n .song-link-btn:hover {
\\n background: #000000;
\\n }
\\n
\\n /* 响应式设计 */
\\n @media (max-width: 600px) {
\\n .music-player-container {
\\n transform: translate(-50%, -50%) scale(0.8);
\\n }
\\n
\\n .playlist-content {
\\n width: 90%;
\\n }
\\n }
\\n /* 提示信息 */
\\n .click-outside-hint {
\\n position: absolute;
\\n bottom: 15px;
\\n left: 0;
\\n width: 100%;
\\n text-align: center;
\\n font-size: 12px;
\\n color: #999;
\\n font-style: italic;
\\n }
\\n </style>
\\n</head>
\\n<body>
\\n <!-- 移除了初始的 is-playing 类 --\x3e
\\n <div class=\\"music-player-container\\">
\\n <div class=\\"music-player\\">
\\n <div class=\\"player-content-container\\">
\\n <h1 class=\\"song-title\\">歌曲标题</h1>
\\n <h2 class=\\"artist-name\\">歌手</h2>
\\n <h3 class=\\"album-title\\">专辑</h3>
\\n
\\n <div class=\\"music-player-controls\\">
\\n <div class=\\"control-back\\"></div>
\\n <div class=\\"control-play\\"></div>
\\n <div class=\\"control-forwards\\"></div>
\\n </div>
\\n
\\n <div class=\\"player-controls\\">
\\n <div class=\\"progress-container\\">
\\n <div class=\\"progress-bar\\" style=\\"width: 0%\\"></div>
\\n </div>
\\n <div class=\\"time-display\\">
\\n <span class=\\"current-time\\">0:00</span>
\\n <span class=\\"total-time\\">0:00</span>
\\n </div>
\\n
\\n <div class=\\"volume-container\\">
\\n <div class=\\"volume-icon\\">
</div>
\\n <div class=\\"volume-slider\\">
\\n <div class=\\"volume-level\\" style=\\"width: 80%\\"></div>
\\n </div>
\\n </div>
\\n
\\n <button class=\\"playlist-btn\\">播放列表 (4)</button>
\\n </div>
\\n </div>
\\n </div>
\\n
\\n <div class=\\"album\\">
\\n <div class=\\"album-art\\"></div>
\\n <div class=\\"vinyl\\"></div>
\\n </div>
\\n </div>
\\n
\\n <div class=\\"playlist-container\\">
\\n <button class=\\"close-btn\\">×</button>
\\n <div class=\\"playlist-content\\">
\\n <div class=\\"playlist-header\\">
\\n <span>播放列表</span>
\\n <span>当前歌曲: <span id=\\"current-song-indicator\\">1</span></span>
\\n </div>
\\n <div class=\\"playlist-items\\">
\\n <!-- 播放列表内容由JS生成 --\x3e
\\n </div>
\\n <div class=\\"click-outside-hint\\">点击播放列表外部区域关闭</div>
\\n </div>
\\n </div>
\\n
\\n <script src=\'https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js\'></script>
\\n <script>
\\n // 歌曲数据
\\n const songs = [
\\n {
\\n name: \\"归\\",
\\n singer: \\"龙井\\",
\\n album: \\"龙井摇滚1\\",
\\n path: \\"https://edzbecom.edzbe.com/Music/2014031305281167131.mp3\\",
\\n image: \\"https://www.edzbe.com/wp-content/uploads/2010/10/15102-150x150.jpg\\",
\\n url: \\"https://www.example.com/song1\\"
\\n },
\\n {
\\n name: \\"Tu Phir Se Aana\\",
\\n singer: \\"Raftaar x Salim Merchant x Karma\\",
\\n album: \\"龙井摇滚2\\",
\\n path: \\"https://mp3.vlcmusic.com/download.php?track_id=34213&format=320\\",
\\n image: \\"https://1.bp.blogspot.com/-kX21dGUuTdM/X85ij1SBeEI/AAAAAAAAKK4/feboCtDKkls19cZw3glZWRdJ6J8alCm-gCNcBGAsYHQ/s16000/Tu%2BAana%2BPhir%2BSe%2BRap%2BSong%2BLyrics%2BBy%2BRaftaar.jpg\\",
\\n url: \\"https://www.example.com/song2\\"
\\n },
\\n {
\\n name: \\"时间里的\\",
\\n singer: \\"马頔\\",
\\n album: \\"龙井摇滚3\\",
\\n path: \\"https://edzbecom.edzbe.com/Music/2015080304061065494.mp3\\",
\\n image: \\"https://www.edzbe.com/wp-content/uploads/2015/08/13116882321422539101.jpg\\",
\\n url: \\"https://www.example.com/song15\\"
\\n },
\\n {
\\n name: \\"Feeling You\\",
\\n singer: \\"Raftaar x Harjas\\",
\\n album: \\"龙井摇滚4\\",
\\n path: \\"https://mp3.filmisongs.com/go.php?id=Damn%20Song%20Raftaar%20Ft%20KrSNa.mp3\\",
\\n image: \\"https://a10.gaanacdn.com/gn_img/albums/YoEWlabzXB/oEWlj5gYKz/size_xxl_1586752323.webp\\",
\\n url: \\"https://www.example.com/song18\\"
\\n }
\\n ];
\\n </script>
\\n <script>
\\n (function($) {
\\n $(document).ready(function() {
\\n // 创建音频对象
\\n const audio = new Audio();
\\n let currentSongIndex = 0;
\\n let isPlaying = false;
\\n
\\n // 获取DOM元素
\\n const playerContainer = $(\'.music-player-container\');
\\n const artistName = $(\'.artist-name\');
\\n const albumTitle = $(\'.album-title\');
\\n const songTitle = $(\'.song-title\');
\\n const albumArt = $(\'.album-art\');
\\n const vinyl = $(\'.vinyl\');
\\n const backBtn = $(\'.control-back\');
\\n const playBtn = $(\'.control-play\');
\\n const forwardBtn = $(\'.control-forwards\');
\\n const progressBar = $(\'.progress-bar\');
\\n const progressContainer = $(\'.progress-container\');
\\n const currentTimeEl = $(\'.current-time\');
\\n const totalTimeEl = $(\'.total-time\');
\\n const volumeSlider = $(\'.volume-level\');
\\n const volumeContainer = $(\'.volume-slider\');
\\n const playlistBtn = $(\'.playlist-btn\');
\\n const playlistContainer = $(\'.playlist-container\');
\\n const playlistItems = $(\'.playlist-items\');
\\n const currentSongIndicator = $(\'#current-song-indicator\');
\\n
\\n // 初始化播放器
\\n function initPlayer() {
\\n // 确保初始状态正确
\\n playerContainer.removeClass(\'is-playing\');
\\n vinyl.css(\'animation-play-state\', \'paused\');
\\n
\\n // 加载第一首歌
\\n loadSong(currentSongIndex);
\\n
\\n // 初始化播放列表
\\n renderPlaylist();
\\n
\\n // 为歌曲标题添加点击事件
\\n songTitle.on(\'click\', function() {
\\n const currentSong = songs[currentSongIndex];
\\n window.open(currentSong.url, \'_blank\');
\\n });
\\n
\\n // 添加点击外部关闭播放列表的功能
\\n addClickOutsideClose();
\\n }
\\n
\\n // 添加点击外部关闭播放列表的功能
\\n function addClickOutsideClose() {
\\n // 点击播放列表外部区域关闭
\\n playlistContainer.on(\'click\', function(e) {
\\n // 如果点击的是背景(不是播放列表内容区域)
\\n if (e.target === this) {
\\n togglePlaylist();
\\n }
\\n });
\\n
\\n // 阻止播放列表内容区域的点击事件冒泡
\\n $(\'.playlist-content\').on(\'click\', function(e) {
\\n e.stopPropagation();
\\n });
\\n }
\\n
\\n // 加载歌曲
\\n function loadSong(index) {
\\n currentSongIndex = index;
\\n const song = songs[index];
\\n
\\n // 更新UI
\\n artistName.text(song.singer);
\\n albumTitle.text(song.album);
\\n songTitle.text(`\\"${song.name}\\"`);
\\n albumArt.css(\'background-image\', `url(${song.image})`);
\\n
\\n // 更新唱片背景
\\n vinyl.css(\'background-image\',
\\n `url(\'https://s3-us-west-2.amazonaws.com/s.cdpn.io/83141/vinyl.png\'), url(\'${song.image}\')`);
\\n
\\n // 设置音频源
\\n audio.src = song.path;
\\n
\\n // 重置进度条
\\n progressBar.css(\'width\', \'0%\');
\\n currentTimeEl.text(\'0:00\');
\\n
\\n // 更新当前歌曲指示器
\\n currentSongIndicator.text(index + 1);
\\n
\\n // 加载完成后更新总时长
\\n audio.addEventListener(\'loadedmetadata\', function() {
\\n const totalMinutes = Math.floor(audio.duration / 60);
\\n const totalSeconds = Math.floor(audio.duration % 60);
\\n totalTimeEl.text(`${totalMinutes}:${totalSeconds < 10 ? \'0\' : \'\'}${totalSeconds}`);
\\n });
\\n
\\n // 更新播放列表高亮
\\n updatePlaylistHighlight();
\\n
\\n // 自动播放当前歌曲(如果正在播放)
\\n if (isPlaying) {
\\n audio.play();
\\n }
\\n }
\\n
\\n // 播放/暂停功能
\\n function togglePlayback() {
\\n if (isPlaying) {
\\n audio.pause();
\\n playerContainer.removeClass(\'is-playing\');
\\n vinyl.css(\'animation-play-state\', \'paused\');
\\n } else {
\\n audio.play();
\\n playerContainer.addClass(\'is-playing\');
\\n vinyl.css(\'animation-play-state\', \'running\');
\\n }
\\n isPlaying = !isPlaying;
\\n }
\\n
\\n // 上一首
\\n function prevSong() {
\\n currentSongIndex = (currentSongIndex - 1 + songs.length) % songs.length;
\\n loadSong(currentSongIndex);
\\n if (isPlaying) {
\\n audio.play();
\\n }
\\n }
\\n
\\n // 下一首
\\n function nextSong() {
\\n currentSongIndex = (currentSongIndex + 1) % songs.length;
\\n loadSong(currentSongIndex);
\\n if (isPlaying) {
\\n audio.play();
\\n }
\\n }
\\n
\\n // 更新进度条
\\n function updateProgress(e) {
\\n const { duration, currentTime } = e.target;
\\n const progressPercent = (currentTime / duration) * 100;
\\n progressBar.css(\'width\', `${progressPercent}%`);
\\n
\\n // 更新当前时间
\\n const currentMinutes = Math.floor(currentTime / 60);
\\n const currentSeconds = Math.floor(currentTime % 60);
\\n currentTimeEl.text(`${currentMinutes}:${currentSeconds < 10 ? \'0\' : \'\'}${currentSeconds}`);
\\n }
\\n
\\n // 设置进度
\\n function setProgress(e) {
\\n const width = progressContainer.width();
\\n const clickX = e.offsetX;
\\n const duration = audio.duration;
\\n
\\n audio.currentTime = (clickX / width) * duration;
\\n }
\\n
\\n // 设置音量
\\n function setVolume(e) {
\\n const width = volumeContainer.width();
\\n const clickX = e.offsetX;
\\n const volume = clickX / width;
\\n
\\n audio.volume = volume;
\\n volumeSlider.css(\'width\', `${volume * 100}%`);
\\n }
\\n
\\n // 渲染播放列表
\\n function renderPlaylist() {
\\n playlistItems.empty();
\\n
\\n songs.forEach((song, index) => {
\\n const playlistItem = $(\'<div>\').addClass(\'playlist-item\').data(\'index\', index).html(`
\\n <div class=\\"playlist-info\\">
\\n <div class=\\"song-name\\" data-url=\\"${song.url}\\">${song.name}</div>
\\n <div class=\\"song-singer\\">${song.singer}</div>
\\n </div>
\\n <button class=\\"song-link-btn\\" data-url=\\"${song.url}\\">歌曲详情</button>
\\n `);
\\n
\\n // 绑定播放列表项的点击事件
\\n playlistItem.on(\'click\', function() {
\\n const index = $(this).data(\'index\');
\\n loadSong(index);
\\n if (!isPlaying) {
\\n togglePlayback();
\\n }
\\n });
\\n
\\n // 绑定歌曲名称的点击事件 这个我先隐藏了
\\n // playlistItem.find(\'.song-name\').on(\'click\', function(e) {
\\n // e.stopPropagation();
\\n // window.open($(this).data(\'url\'), \'_blank\');
\\n // });
\\n
\\n // 绑定按钮的点击事件
\\n playlistItem.find(\'.song-link-btn\').on(\'click\', function(e) {
\\n e.stopPropagation();
\\n window.open($(this).data(\'url\'), \'_blank\');
\\n });
\\n
\\n playlistItems.append(playlistItem);
\\n });
\\n
\\n // 更新播放列表高亮
\\n updatePlaylistHighlight();
\\n }
\\n
\\n // 更新播放列表高亮
\\n function updatePlaylistHighlight() {
\\n $(\'.playlist-item\').removeClass(\'active\');
\\n $(\'.playlist-item\').eq(currentSongIndex).addClass(\'active\');
\\n }
\\n
\\n // 显示/隐藏播放列表
\\n function togglePlaylist() {
\\n playlistContainer.toggleClass(\'active\');
\\n }
\\n
\\n // 事件监听
\\n playBtn.on(\'click\', togglePlayback);
\\n backBtn.on(\'click\', prevSong);
\\n forwardBtn.on(\'click\', nextSong);
\\n playlistBtn.on(\'click\', togglePlaylist);
\\n $(\'.close-btn\').on(\'click\', togglePlaylist);
\\n
\\n // 进度条控制
\\n progressContainer.on(\'click\', setProgress);
\\n volumeContainer.on(\'click\', setVolume);
\\n
\\n // 音频事件
\\n audio.addEventListener(\'timeupdate\', updateProgress);
\\n audio.addEventListener(\'ended\', nextSong);
\\n
\\n // 初始化播放器
\\n initPlayer();
\\n });
\\n })(jQuery);
\\n </div></script>
\\n</body>
\\n</html>\\n手机端:
\\n<!DOCTYPE html
>\\n
<html lang
=\\"en\\">\\n
<head
>\\n
<meta charset
=\\"UTF-8\\"/>\\n
<title
>耳朵电台手机端播放器
</title
>\\n
<link rel
=\\"stylesheet\\" href
=\\"./style.css\\"/>\\n
\\n
</head
>\\n
<body
>\\n
<!-- partial
:index
.partial
.html
--\x3e\\n
<meta name
=\\"viewport\\" content
=\\"width=device-width, initial-scale=1.0\\"/>\\n
<link rel
=\\"stylesheet\\" href
=\\"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css\\" integrity
=\\"sha512-HK5fgLBL+xu6dm/Ii3z4xhlSUyZgTT9tuc/hSrtw6uzJOvgRr2a9jyxxT1ely+B+xFAmJKVSTbpM/CuL7qxO8w==\\" crossorigin
=\\"anonymous\\" />\\n
<link rel
=\\"preconnect\\" href
=\\"https://fonts.gstatic.com\\"/>\\n
<link href
=\\"https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap\\" rel
=\\"stylesheet\\"/>\\n
\\n
<div
class=\\"player\\">\\n
<!-- Dashboard
--\x3e\\n
<div
class=\\"dashboard\\">\\n
<!-- Header --\x3e\\n
<header
>\\n
<h4
>Now playing
:</h4
>\\n
<h2
>String 57th
& 9th
</h2
>\\n
</header
>\\n
\\n
<!-- CD
--\x3e\\n
<div
class=\\"cd\\">\\n
<div
class=\\"cd-thumb\\">\\n
</div
>\\n
</div
>\\n
\\n
<!-- Control
--\x3e\\n
<div
class=\\"control\\">\\n
<div
class=\\"btn btn-repeat\\">\\n
<i
class=\\"fas fa-redo\\"></i
>\\n
</div
>\\n
<div
class=\\"btn btn-prev\\">\\n
<i
class=\\"fas fa-step-backward\\"></i
>\\n
</div
>\\n
<div
class=\\"btn btn-toggle-play\\">\\n
<i
class=\\"fas fa-pause icon-pause\\"></i
>\\n
<i
class=\\"fas fa-play icon-play\\"></i
>\\n
</div
>\\n
<div
class=\\"btn btn-next\\">\\n
<i
class=\\"fas fa-step-forward\\"></i
>\\n
</div
>\\n
<div
class=\\"btn btn-random\\">\\n
<i
class=\\"fas fa-random\\"></i
>\\n
</div
>\\n
</div
>\\n
\\n
<input id
=\\"progress\\" class=\\"progress\\" type
=\\"range\\" value
=\\"0\\" step
=\\"1\\" min=\\"0\\" max=\\"100\\"/>\\n
\\n
<audio id
=\\"audio\\" src
=\\"\\"></audio
>\\n
</div
>\\n
\\n
<!-- Playlist
--\x3e\\n
<div
class=\\"playlist\\">\\n
</div
>\\n
</div
>\\n
\\n
<!-- partial
--\x3e\\n
\\n
<script
>\\n
const songs
= [\\n
{\\n name
: \\"镜子中\\",\\n singer
: \\"扭曲的机器\\",\\n path
: \\"https://edzbecom.oss-cn-hangzhou.aliyuncs.com/Music/2014031305281167131.mp3\\",\\n image
: \\"https://www.edzbe.com/wp-content/uploads/2010/10/15102-150x150.jpg\\"\\n
},\\n
{\\n name
: \\"Tu Phir Se Aana\\",\\n singer
: \\"Raftaar x Salim Merchant x Karma\\",\\n path
: \\"https://mp3.vlcmusic.com/download.php?track_id=34213&format=320\\",\\n image
:\\n
\\"https://1.bp.blogspot.com/-kX21dGUuTdM/X85ij1SBeEI/AAAAAAAAKK4/feboCtDKkls19cZw3glZWRdJ6J8alCm-gCNcBGAsYHQ/s16000/Tu%2BAana%2BPhir%2BSe%2BRap%2BSong%2BLyrics%2BBy%2BRaftaar.jpg\\"\\n
},\\n
{\\n name
: \\"时间里的\\",\\n singer
: \\"马頔\\",\\n path
: \\"https://edzbecom.oss-cn-hangzhou.aliyuncs.com/Music/2015080304061065494.mp3\\",\\n image
: \\"https://www.edzbe.com/wp-content/uploads/2015/08/13116882321422539101.jpg\\"\\n
},\\n
{\\n name
: \\"Feeling You\\",\\n singer
: \\"Raftaar x Harjas\\",\\n path
: \\"https://mp3.filmisongs.com/go.php?id=Damn%20Song%20Raftaar%20Ft%20KrSNa.mp3\\",\\n image
:\\n
\\"https://a10.gaanacdn.com/gn_img/albums/YoEWlabzXB/oEWlj5gYKz/size_xxl_1586752323.webp\\"\\n
}\\n
];\\n
\\n
</script>\\n
\\n
<!--音频数据一定要在APP
.JS之前加载
--\x3e\\n
<script src
=\\"./app.js\\"></script>\\n
</body
>\\n
</html
> \\n手机端 App.js 文件代码:
\\nconst $
= document
.querySelector
.bind
(document
);\\n
const $$
= document
.querySelectorAll
.bind
(document
);\\n
\\n
const PlAYER_STORAGE_KEY
= \\"F8_PLAYER\\";\\n
\\n
const player
= $
(\\".player\\");\\n
const cd
= $
(\\".cd\\");\\n
const heading
= $
(\\"header h2\\");\\n
const cdThumb
= $
(\\".cd-thumb\\");\\n
const audio
= $
(\\"#audio\\");\\n
const playBtn
= $
(\\".btn-toggle-play\\");\\n
const progress
= $
(\\"#progress\\");\\n
const prevBtn
= $
(\\".btn-prev\\");\\n
const nextBtn
= $
(\\".btn-next\\");\\n
const randomBtn
= $
(\\".btn-random\\");\\n
const repeatBtn
= $
(\\".btn-repeat\\");\\n
const playlist
= $
(\\".playlist\\");\\n
\\n
const app
= {\\n currentIndex
: 0,\\n isPlaying
: false,\\n isRandom
: false,\\n isRepeat
: false,\\n config
: {},\\n
// (1/2) 解注释以下代码行以使用localStorage\\n
// config: JSON.parse(localStorage.getItem(PlAYER_STORAGE_KEY)) || {},\\n songs
: [], // 从data.js文件中导入歌曲数据\\n setConfig
: function (key, value
) {\\n this
.config
[key] = value
;\\n
// (2/2) 解注释以下代码行以使用localStorage\\n
// localStorage.setItem(PlAYER_STORAGE_KEY, JSON.stringify(this.config));\\n
},\\n render
: function () {\\n
const htmls
= this
.songs
.map
((song
, index
) => {\\n
return `
\\n
<div
class=\\"song ${
\\n index === this.currentIndex ? \\"active
\\" : \\"\\"
\\n }\\" data
-index
=\\"${index}\\">\\n
<div
class=\\"thumb\\"\\n style
=\\"background-image: url(\'${song.image}\')\\">\\n
</div
>\\n
<div
class=\\"body\\">\\n
<h3
class=\\"title\\">$
{song
.name
}</h3
>\\n
<p
class=\\"author\\">$
{song
.singer
}</p
>\\n
</div
>\\n
<div
class=\\"option\\">\\n
<i
class=\\"fas fa-ellipsis-h\\"></i
>\\n
</div
>\\n
</div
>\\n `
;\\n
});\\n playlist
.innerHTML
= htmls
.join(\\"\\");\\n
},\\n defineProperties
: function () {\\n Object
.defineProperty
(this
, \\"currentSong\\", {\\n get
: function () {\\n
return this
.songs
[this
.currentIndex
];\\n
}\\n
});\\n
},\\n handleEvents
: function () {\\n
const _this
= this
;\\n
const cdWidth
= cd
.offsetWidth
;\\n
\\n
// 处理CD旋转/停止\\n
const cdThumbAnimate
= cdThumb
.animate
([{ transform
: \\"rotate(360deg)\\" }], {\\n duration
: 10000, // 10秒\\n iterations
: Infinity
\\n
});\\n cdThumbAnimate
.pause
();\\n
\\n
// 处理CD放大/缩小\\n document
.onscroll
= function () {\\n
const scrollTop
= window
.scrollY
|| document
.documentElement
.scrollTop
;\\n
const newCdWidth
= cdWidth
- scrollTop
;\\n
\\n cd
.style
.width
= newCdWidth
> 0 ? newCdWidth
+ \\"px\\" : 0;\\n cd
.style
.opacity
= newCdWidth
/ cdWidth
;\\n
};\\n
\\n
// 处理点击播放\\n playBtn
.onclick
= function () {\\n
if (_this
.isPlaying
) {\\n audio
.pause
();\\n
} else {\\n audio
.play
();\\n
}\\n
};\\n
\\n
// 当歌曲播放时\\n audio
.onplay
= function () {\\n _this
.isPlaying
= true;\\n player
.classList
.add
(\\"playing\\");\\n cdThumbAnimate
.play
();\\n
};\\n
\\n
// 当歌曲暂停时\\n audio
.onpause
= function () {\\n _this
.isPlaying
= false;\\n player
.classList
.remove
(\\"playing\\");\\n cdThumbAnimate
.pause
();\\n
};\\n
\\n
// 当歌曲进度改变时\\n audio
.ontimeupdate
= function () {\\n
if (audio
.duration
) {\\n
const progressPercent
= Math
.floor(\\n
(audio
.currentTime
/ audio
.duration
) * 100\\n
);\\n progress
.value
= progressPercent
;\\n
}\\n
};\\n
\\n
// 处理歌曲拖动\\n progress
.onchange
= function (e
) {\\n
const seekTime
= (audio
.duration
/ 100) * e
.target
.value
;\\n audio
.currentTime
= seekTime
;\\n
};\\n
\\n
// 下一首歌曲\\n nextBtn
.onclick
= function () {\\n
if (_this
.isRandom
) {\\n _this
.playRandomSong
();\\n
} else {\\n _this
.nextSong
();\\n
}\\n audio
.play
();\\n _this
.render
();\\n _this
.scrollToActiveSong
();\\n
};\\n
\\n
// 上一首歌曲\\n prevBtn
.onclick
= function () {\\n
if (_this
.isRandom
) {\\n _this
.playRandomSong
();\\n
} else {\\n _this
.prevSong
();\\n
}\\n audio
.play
();\\n _this
.render
();\\n _this
.scrollToActiveSong
();\\n
};\\n
\\n
// 处理随机播放开关\\n randomBtn
.onclick
= function (e
) {\\n _this
.isRandom
= !_this
.isRandom
;\\n _this
.setConfig
(\\"isRandom\\", _this
.isRandom
);\\n randomBtn
.classList
.toggle
(\\"active\\", _this
.isRandom
);\\n
};\\n
\\n
// 处理单曲循环\\n repeatBtn
.onclick
= function (e
) {\\n _this
.isRepeat
= !_this
.isRepeat
;\\n _this
.setConfig
(\\"isRepeat\\", _this
.isRepeat
);\\n repeatBtn
.classList
.toggle
(\\"active\\", _this
.isRepeat
);\\n
};\\n
\\n
// 处理音频播放结束后的下一首歌曲\\n audio
.onended
= function () {\\n
if (_this
.isRepeat
) {\\n audio
.play
();\\n
} else {\\n nextBtn
.click
();\\n
}\\n
};\\n
\\n
// 监听播放列表点击事件\\n playlist
.onclick
= function (e
) {\\n
const songNode
= e
.target
.closest
(\\".song:not(.active)\\");\\n
\\n
if (songNode
|| e
.target
.closest
(\\".option\\")) {\\n
// 处理点击歌曲\\n
if (songNode
) {\\n _this
.currentIndex
= Number
(songNode
.dataset
.index
);\\n _this
.loadCurrentSong
();\\n _this
.render
();\\n audio
.play
();\\n
}\\n
\\n
// 处理点击歌曲选项\\n
if (e
.target
.closest
(\\".option\\")) {\\n
}\\n
}\\n
};\\n
},\\n scrollToActiveSong
: function () {\\n setTimeout
(() => {\\n $
(\\".song.active\\").scrollIntoView
({\\n behavior
: \\"smooth\\",\\n block
: \\"nearest\\"\\n
});\\n
}, 300);\\n
},\\n loadCurrentSong
: function () {\\n heading
.textContent
= this
.currentSong
.name
;\\n cdThumb
.style
.backgroundImage
= `url
(\'${this.currentSong.image}\')`
;\\n audio
.src
= this
.currentSong
.path
;\\n
},\\n loadConfig
: function () {\\n this
.isRandom
= this
.config
.isRandom
;\\n this
.isRepeat
= this
.config
.isRepeat
;\\n
},\\n nextSong
: function () {\\n this
.currentIndex
++;\\n
if (this
.currentIndex
>= this
.songs
.length
) {\\n this
.currentIndex
= 0;\\n
}\\n this
.loadCurrentSong
();\\n
},\\n prevSong
: function () {\\n this
.currentIndex
--;\\n
if (this
.currentIndex
< 0) {\\n this
.currentIndex
= this
.songs
.length
- 1;\\n
}\\n this
.loadCurrentSong
();\\n
},\\n playRandomSong
: function () {\\n let newIndex
;\\n
do {\\n newIndex
= Math
.floor(Math
.random
() * this
.songs
.length
);\\n
} while (newIndex
=== this
.currentIndex
);\\n
\\n this
.currentIndex
= newIndex
;\\n this
.loadCurrentSong
();\\n
},\\n start
: function () {\\n
// 从data.js加载歌曲数据\\n this
.songs
= songs
;\\n
\\n
// 将配置从config赋值给应用\\n this
.loadConfig
();\\n
\\n
// 定义对象的属性\\n this
.defineProperties
();\\n
\\n
// 监听/处理事件(DOM事件)\\n this
.handleEvents
();\\n
\\n
// 运行应用时将第一首歌曲信息加载到UI\\n this
.loadCurrentSong
();\\n
\\n
// 渲染播放列表\\n this
.render
();\\n
\\n
// 显示重复和随机按钮的初始状态\\n randomBtn
.classList
.toggle
(\\"active\\", this
.isRandom
);\\n repeatBtn
.classList
.toggle
(\\"active\\", this
.isRepeat
);\\n
}\\n
};\\n
\\napp
.start
(); \\n手机端 style.css 样式代码:
\\n:root
{\\n
--primary
-color
: #ec1f55;
\\n --text
-color
: #333;
\\n}\\n
\\n
* {\\n padding
: 0;\\n margin
: 0;\\n box
-sizing
: inherit
;\\n
}\\n
\\nbody
{\\n background
-color
: #f5f5f5;
\\n}\\n
\\nhtml
{\\n box
-sizing
: border
-box
;\\n font
-family
: \\"Poppins\\", sans
-serif
;\\n
}\\n
\\n
.player
{\\n position
: relative
;\\n max
-width
: 480px
;\\n margin
: 0 auto
;\\n
}\\n
\\n
.player
.icon
-pause
{\\n display
: none
;\\n
}\\n
\\n
.player
.playing
.icon
-pause
{\\n display
: inline
-block
;\\n
}\\n
\\n
.player
.playing
.icon
-play
{\\n display
: none
;\\n
}\\n
\\n
.dashboard
{\\n padding
: 16px 16px 14px
;\\n background
-color
: #fff;
\\n position
: fixed
;\\n top
: 0;\\n width
: 100%;\\n max
-width
: 480px
;\\n border
-bottom
: 1px solid
#ebebeb;
\\n}\\n
\\n
/* HEADER */\\n
header {\\n text
-align
: center
;\\n margin
-bottom
: 10px
;\\n
}\\n
\\n
header h4
{\\n color
: var(--primary
-color
);\\n font
-size
: 12px
;\\n
}\\n
\\n
header h2
{\\n color
: var(--text
-color
);\\n font
-size
: 20px
;\\n
}\\n
\\n
/* CD */\\n
.cd
{\\n display
: flex
;\\n margin
: auto
;\\n width
: 200px
;\\n
}\\n
\\n
.cd
-thumb
{\\n width
: 100%;\\n padding
-top
: 100%;\\n border
-radius
: 50%;\\n background
-color
: #333;
\\n background
-size
: cover
;\\n margin
: auto
;\\n
}\\n
\\n
/* CONTROL */\\n
.control
{\\n display
: flex
;\\n align
-items
: center
;\\n justify
-content
: space
-around
;\\n padding
: 18px
0 8px
0;\\n
}\\n
\\n
.control
.btn
{\\n color
: #666;
\\n padding
: 18px
;\\n font
-size
: 18px
;\\n
}\\n
\\n
.control
.btn
.active
{\\n color
: var(--primary
-color
);\\n
}\\n
\\n
.control
.btn
-toggle
-play
{\\n width
: 56px
;\\n height
: 56px
;\\n border
-radius
: 50%;\\n font
-size
: 24px
;\\n color
: #fff;
\\n display
: flex
;\\n align
-items
: center
;\\n justify
-content
: center
;\\n background
-color
: var(--primary
-color
);\\n
}\\n
\\n
.progress
{\\n width
: 100%;\\n
-webkit
-appearance
: none
;\\n height
: 6px
;\\n background
: #d3d3d3;
\\n outline
: none
;\\n opacity
: 0.7;\\n
-webkit
-transition
: 0
.2s
;\\n transition
: opacity 0
.2s
;\\n
}\\n
\\n
.progress
::-webkit
-slider
-thumb
{\\n
-webkit
-appearance
: none
;\\n appearance
: none
;\\n width
: 12px
;\\n height
: 6px
;\\n background
-color
: var(--primary
-color
);\\n cursor
: pointer
;\\n
}\\n
\\n
/* PLAYLIST */\\n
.playlist
{\\n margin
-top
: 408px
;\\n padding
: 12px
;\\n
}\\n
\\n
.song
{\\n display
: flex
;\\n align
-items
: center
;\\n margin
-bottom
: 12px
;\\n background
-color
: #fff;
\\n padding
: 8px 16px
;\\n border
-radius
: 5px
;\\n box
-shadow
: 0 2px 3px rgba
(0, 0, 0, 0.1);\\n
}\\n
\\n
.song
.active
{\\n background
-color
: var(--primary
-color
);\\n
}\\n
\\n
.song
:active
{\\n opacity
: 0.8;\\n
}\\n
\\n
.song
.active
.option
,\\n
.song
.active
.author
,\\n
.song
.active
.title
{\\n color
: #fff;
\\n}\\n
\\n
.song
.thumb
{\\n width
: 44px
;\\n height
: 44px
;\\n border
-radius
: 50%;\\n background
-size
: cover
;\\n margin
: 0 8px
;\\n
}\\n
\\n
.song
.body
{\\n flex
: 1;\\n padding
: 0 16px
;\\n
}\\n
\\n
.song
.title
{\\n font
-size
: 18px
;\\n color
: var(--text
-color
);\\n
}\\n
\\n
.song
.author
{\\n font
-size
: 12px
;\\n color
: #999;
\\n}\\n
\\n
.song
.option
{\\n padding
: 16px 8px
;\\n color
: #999;
\\n font
-size
: 18px
;\\n
} \\n啊啊啊啊啊啊啊,我又想到了,安卓版好久没维护更新了,啊啊啊啊啊啊啊啊啊,当时弄的安卓版还是独立的系统,需要我博客更新一篇音频,安卓后台在更新一遍,啊,双遍工作量,我不玩了,我不玩了。
\\n\\n哎呀,唉,我不玩了,我好饿,我叫了份霸王牛肉面,三点多送来了,凉了,我要去吃了。
","description":"书到用时方恨少,早知道当初年少就不应该沉迷于QQ聊天泡妞,就应该多买几本技术类教程书籍多看看… 我不知道今天抽什么风,突然间就想把电台的PC端和H5端给完善一下,然后,我太自信了,呃,这完全是在我能力之外的工作啊!\\n\\n从昨天AM10:42到现在AM3:40,几个小时我算算,呃,十六还是十七个小时,啊啊啊,我现在脑壳短路,算不明白了。中途就吃了晚饭半个小时,然后辅导娃儿作业一个小时,其余时间我就抱着电脑死命磕磕磕,我的老腰啊……\\n\\n想法一大堆,但是奈何水平不够,总是碰到一大堆问题,借助Gemini才勉勉强强完成。\\n\\n电台页面:https://www.edzbe…","guid":"https://www.edzbe.com/?p=12883","author":"耳朵的主人²º²⁵","authorUrl":null,"authorAvatar":null,"publishedAt":"2025-06-04T21:18:34.696Z","media":[{"url":"https://www.edzbe.com/wp-content/uploads/2025/06/Screenshot-1024x601.jpg","type":"photo","width":1024,"height":601,"blurhash":"LOD0M;~qozoL~W-;j[kB009GaeWB"},{"url":"https://www.edzbe.com/wp-content/uploads/2025/06/Screenshot1-1024x604.jpg","type":"photo","width":1024,"height":604,"blurhash":"LUD]C{kD4nRPxuW;M{Rj0Kad?bxu"},{"url":"https://www.edzbe.com/wp-content/uploads/2025/06/Screenshot2-1024x603.jpg","type":"photo","width":1024,"height":603,"blurhash":"L69P[|RQE0BOENr?WXt70dOX-pv%"},{"url":"https://www.edzbe.com/wp-content/uploads/2025/06/Screenshot4-1024x603.jpg","type":"photo","width":1024,"height":603,"blurhash":"L[Jkios:00RkocfQWEazD*axxuof"},{"url":"https://www.edzbe.com/wp-content/uploads/2025/06/pc-1024x683.jpg","type":"photo","width":1024,"height":683,"blurhash":"LOEVpaof00RP%iWVM{WC57Rj_2xu"},{"url":"https://www.edzbe.com/wp-content/uploads/2025/06/h5-1024x739.jpg","type":"photo","width":1024,"height":739,"blurhash":"LDQ0XH%MjFxb~qWBjbof00ofxuIU"},{"url":"https://www.edzbe.com/wp-content/uploads/2025/06/index-1024x455.jpg","type":"photo","width":1024,"height":455,"blurhash":"LGL4vn_3M{-p%3V@t7-:00WCxv%L"},{"url":"https://s.w.org/images/core/emoji/15.1.0/72x72/1f50a.png","type":"photo","width":72,"height":72,"blurhash":"LSD]@{?c4n4nt7kCayWB4TITadxu"}],"categories":["碎碎念"],"attachments":[{"url":"https://edzbecom.oss-cn-hangzhou.aliyuncs.com/Music/2014031305281167131.mp3","mime_type":"audio/mpeg","size_in_bytes":"8956643"}],"extra":null,"language":null},{"title":"我的浪迹地图","url":"https://www.edzbe.com/book/diary/20250530.html","content":"原计划端午节带娃回趟老家,下午哄娃睡午觉的时候,手一伸摸到脖子,感觉温度不太对,应该是有轻微的低烧,拿体温计一验,37.1°,今天是学校的六一活动节,有很多好玩的节目,贝勒爷不想错过,但是出于对别人负责的态度,算了,请个假,候着,看体温变化,美团上顺便买了核酸检测剂,唉,两条杠。
\\n所以回老家的计划取消了,也好在有三天假期,希望这三天尽快养好,不要耽误了上课。
\\n前几日,在周天记看到博友弄的足迹地图,抄作业我还是会的,想想我也搞个页面吧,折腾了两天,代码类的都能照抄了,没啥难度,就是在同步云盘里找之前手机的备份照片,这些年换了N+1台手机,照片一大堆,而且当初备份的时候,没有选择按照手机备份,全部叠放在一起,找得脑袋瓜子嗡嗡的,到晚上哄娃吃完药睡下后,才有时间收尾。
\\n反正站点是自己的,新建页面又不要钱,好吧,新开一个页面,我放到 浪迹地图 这里来了,用不同的年份照片做图标,整理也是件苦力活。
\\n发现了一个问题,会不会是因为我导入的数组太多了,百度地图的API加载会有受限,有时候前端不能完全显示我的足迹标签,我的完整版是这样的,如下图:
\\n(我图都截不到…)
\\n算了,我还是分成两版试试吧!
\\n国内版:大图链接…
\\n\\n世界版:大图链接…
\\n\\n果然,分成两版就正常了,全部显示了,哎呀,这搞得,没啥意思了啊!
\\n生在泉州,活在厦门,这一生脚步迷乱,路过很多座城,也留下很多故事和事故,我是出走了半生,但是归来时已不是少年摸样。
\\n这里就大概的记录了这些年的足迹,多的也许我故意遗落了,也许我自己也忘了,所以那是不重要的。标注的都是停留超过7天或有特殊意义的,时间更短的地方,就不提说去过了。
\\n不过这个还是可以看出的,这些年我一直在往南走,嗯,此情此景,应该配乐一首。
\\n一路往南走(种完麦子我就往南走) – 卢润泽
\\n\\nhttps://ai.xxx.bi/music/一路往南走%20-%20卢润泽.mp3","description":"原计划端午节带娃回趟老家,下午哄娃睡午觉的时候,手一伸摸到脖子,感觉温度不太对,应该是有轻微的低烧,拿体温计一验,37.1°,今天是学校的六一活动节,有很多好玩的节目,贝勒爷不想错过,但是出于对别人负责的态度,算了,请个假,候着,看体温变化,美团上顺便买了核酸检测剂,唉,两条杠。 所以回老家的计划取消了,也好在有三天假期,希望这三天尽快养好,不要耽误了上课。\\n\\n前几日,在周天记看到博友弄的足迹地图,抄作业我还是会的,想想我也搞个页面吧,折腾了两天,代码类的都能照抄了,没啥难度,就是在同步云盘里找之前手机的备份照片,这些年换了N+1台手机,照片一大堆…","guid":"https://www.edzbe.com/?p=12872","author":"耳朵的主人²º²⁵","authorUrl":null,"authorAvatar":null,"publishedAt":"2025-05-30T16:12:21.718Z","media":null,"categories":["碎碎念","地图","足迹","足迹地图"],"attachments":null,"extra":null,"language":null},{"title":"回山里,窝两天。","url":"https://www.edzbe.com/book/diary/20250514.html","content":"前天晚上哄娃睡觉,哄着哄着,他没睡着,我先打呼了,昨天就起了个大早,一起早我就很慌,我这一天要干点啥…八点多的时候,接到了村干部打来的微信,说是现在有个政策,农村生活污水提升治理项目,自建房可以提要求,由公家出人工和材料,给弄污水管道和化粪池,他帮我登记上去了,一会施工方就来现场查勘,看我方便回老家一趟不,看下怎么安排。
\\n本着不要白不要的理念,我立马就下车库启动,不然自己后面折腾这些不得再花个三五千块,房子的化粪池之前做地基回填的时候,已经安装预埋了,我爸的逻辑是够用就好,我的逻辑是能大尽量大,省得后期抽粪更麻烦。
\\n本以为这些公家工程都是很应付很敷衍的,没想到还挺靠谱的,管路走向和挖槽回填硬化这些,和施工方沟通后,必须竖个大拇指,完全按照我的需求,怎么走管道,怎么放检修口,怎么排放,完全按照我的要求确定。因为我房子弄了三种污水管道单独走管,所以屋顶阳台空调雨水走一路管,厨房污水走一路管,洗手间单独走一路管,这样确保后期不会返味,污水要对接到最近的一条小水渠,单条管道就得120米左右,三条加转角接口,怎么也得近四百米,我对材料也有要求,我想用伟星管,但是他们招标材料只有中财管,那我要中财得110排水管A型,施工方说这个材料可以申请,不需要额外付费,默认是用B型管,管壁厚2.8mm,A型管,管壁厚3mm,厚度厚一点,强度也高点。
\\n既然回来了,顺便把坡屋顶的内隔热层的事情也落实了一下,要把坡屋顶的隔层做成娃娃们的秘密基地,所以隔热保温还是要做好的,材料加运费46元/m²,安装师傅只收工钱,按工时每人每天500元,两个人四天可以完成,约计4000元。
\\n这些事情都落实好,就在老房子那里和奶奶唠唠嗑聊聊天,奶奶午饭做的手工面,还哈拉我要不要吃一碗,哈哈,我都没有报餐,她就做了自己的份,我要是吃了,她就没得吃了。奶奶这几十年来自己做饭自己生活,现在九十多岁了,也是个很要强的老人家,想带她去城里住,她坚决不肯,带她出去玩,也不愿意,嗯,很顽固。
\\n\\n她每天都会定时去散步,每天四公里左右,上午一趟,下午一趟,想扶她,那是不被允许的,拉拉手可以。这个视频是上个月回老家门口监控拍的。视频里,我脚踢了一下小石子,因为她又说了句我不爱听的话。说让她走马路要靠边安全点,她说这么多岁了,去世了也不亏。唉,老人家啊,我们希望她长命百岁,她天天跟你唠活够本了,真的很烦人啊。
\\n
\\n好在奶奶平时的生活作息习惯都相当有规律,几点起床,几点吃饭,几点出门,几点回来,几点睡觉,都是掐分掐秒的准时,所以我在她的活动区域都装了监控,随时都可以看下她的状况,人形移动侦测,还是挺好用的。
\\n
\\n下午闲着无事,嗯,钓鱼去吧,带上我的小装备和折叠椅,披上防晒服,嗯,出发。姑姑家的小鱼塘,平时都没有喂养,草鱼吃草,其他的鱼吃啥就不知道了,反正没有饲料喂养,私人野塘,别人都不能钓,专门等我回老家嚯嚯,风油精没有带,只好从姑姑家拿一瓶六神花露水了,因为蚊虫是真的多。
\\n
\\n钓了一个多小时,拌的饵料用完我就收工了,我懒,用完就下一趟,我不可能再拌一次。罗非鱼,非洲鲫,嗯,这条一斤多,还不错,带回去煮鱼鱼汤,其他的都再倒回去养着,等我下次回来再嚯嚯。
\\n<span data-mce-type=\\"bookmark\\" style=\\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\\" class=\\"mce_SELRES_start\\">\ufeff</span>
\\n姑姑家的苦桃熟了,嗯,不摘一些总觉得有点亏,顺手摘了几十颗回来,视频对面那座山,我家在那边。摘桃子的时候,我很谨慎的,很认真的先看看树上脚边有没有蛇啥的,毕竟玩归玩闹归闹,别拿生命开玩笑。
\\n
\\n下午本地新闻刷出了个眼镜蛇的新闻,新闻链接 ,小区群里好热闹啊,让物业要响应起来,毕竟去年夏天,我们小区跑进来了三次蛇,绿化好的结果就是这点不好。
\\n<span data-mce-type=\\"bookmark\\" style=\\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\\" class=\\"mce_SELRES_start\\">\ufeff</span><span data-mce-type=\\"bookmark\\" style=\\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\\" class=\\"mce_SELRES_start\\">\ufeff</span>
\\n哈哈,这句哇操不是我说的,小区业主拍的视频,如果是我,看清楚是什么蛇后,我就下车追上去拍特写了。
\\n厦漳泉分布有42种蛇。其中,蟒蛇、赤链蛇、黄链蛇、棱鳞锦蛇等30种属于无毒蛇,而金环蛇、银环蛇、丽纹蛇、眼镜蛇、眼镜王蛇、圆斑蝰蛇、竹叶青、白唇竹叶青、龟壳花蛇、山烙铁头、尖吻蝮蛇、蝮蛇等12种属有毒蛇。根据地域分布,山区拥有的蛇类最多,并不是所有地方都有毒蛇分布,但它们的迁徙也难以保证不会出现。
\\n我们这蛇非常多,像剧毒的银环蛇,金环蛇,眼镜蛇,竹叶青这些都是很常见的。小时候的,遇到一条银环蛇慢悠悠的爬过来,一慌就想拿东西砸它,没有称手的武器,我直接上脚了,皮靴的底够硬,然后我也踩得准,正对蛇头,一脚下去它就懵逼了,要是踩不准,那就是另外一个故事了。
\\n
\\n本来想着下午无事就回厦门了,老爸跑到隔壁村去买猪肉了,说让我等等他。上次刷视频说外面买的烤肠材料差不能吃,但是娃儿又爱吃,他去买了30斤的土猪肉,带到镇子里让别人加工成烤肠,嗯,趁热来一根,香。土猪肉一斤17元,烤肠加工费一斤15元,30斤猪肉做出来36斤的香肠,这一堆算下来,30*17+30*15=960元,960/36=26.666666元,折算下来一斤香肠26.7元,不知道贵不贵。
\\n
\\n这下娃儿近阶段的烤肠自由实现了,晚点看下,如果没啥事,就多在老家睡一晚,明天是肯定要回厦门的,明晚学校家长会。
","description":"前天晚上哄娃睡觉,哄着哄着,他没睡着,我先打呼了,昨天就起了个大早,一起早我就很慌,我这一天要干点啥…八点多的时候,接到了村干部打来的微信,说是现在有个政策,农村生活污水提升治理项目,自建房可以提要求,由公家出人工和材料,给弄污水管道和化粪池,他帮我登记上去了,一会施工方就来现场查勘,看我方便回老家一趟不,看下怎么安排。 本着不要白不要的理念,我立马就下车库启动,不然自己后面折腾这些不得再花个三五千块,房子的化粪池之前做地基回填的时候,已经安装预埋了,我爸的逻辑是够用就好,我的逻辑是能大尽量大,省得后期抽粪更麻烦。\\n\\n本以为这些公家工程都是很应付很敷衍的…","guid":"https://www.edzbe.com/?p=12859","author":"耳朵的主人²º²⁵","authorUrl":null,"authorAvatar":null,"publishedAt":"2025-05-14T10:26:35.706Z","media":[{"url":"https://www.edzbe.com/wp-content/uploads/2025/05/20250514171836-567x1024.jpg","type":"photo","width":567,"height":1024,"blurhash":"LpLg|jxB%LtS%MS4kCoe4moMt7ad"},{"url":"https://www.edzbe.com/wp-content/uploads/2025/05/41-768x1024.jpg","type":"photo","width":768,"height":1024,"blurhash":"LRIz;S%2=rs8}ks+xY%1=qR+%LWq"},{"url":"https://www.edzbe.com/wp-content/uploads/2025/05/51-768x1024.jpg","type":"photo","width":768,"height":1024,"blurhash":"LIE:C[wZDh%hDzksf-MvIAVr-;bd"},{"url":"https://www.edzbe.com/wp-content/uploads/2025/05/49-611x1024.jpg","type":"photo","width":611,"height":1024,"blurhash":"LTOgE69F_3~qIAM{-;%M%MoyIUIo"},{"url":"https://www.edzbe.com/wp-content/uploads/2025/05/37-1024x768.jpg","type":"photo","width":1024,"height":768,"blurhash":"LuI5b[IVD%IU~qM|M{WVRjWBt7x]"},{"url":"https://www.edzbe.com/wp-content/uploads/2025/05/14-1024x576.jpg","type":"photo","width":1024,"height":576,"blurhash":"LBF~8SRP9FbH^+-;%2t7_N%2-;%M"}],"categories":["碎碎念","摘桃","生活","钓鱼"],"attachments":null,"extra":null,"language":null}],"readCount":55,"subscriptionCount":91,"analytics":{"feedId":"59399897207132160","updatesPerWeek":0,"subscriptionCount":91,"latestEntryPublishedAt":null,"view":0}}')