Talk:Notes (Apple)
This is the talk page for discussing improvements to the Notes (Apple) article. This is not a forum for general discussion of the article's subject. |
Article policies
|
Find sources: Google (books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL |
This article was nominated for deletion on 12 April 2015 (UTC). The result of the discussion was keep. |
This article was nominated for deletion on 29 October 2012 (UTC). The result of the discussion was keep. |
This article is rated B-class on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||||||
|
Another Draft
[edit]If this article doesn't survive (gets deleted), anyone is more than welcome to edit this draft I made. After the draft is improved, we can move it here. –– Anonymouse321 (talk • contribs) 08:03, 30 October 2012 (UTC)
- The quality of the article is not the reason I nominated it for deletion, the notability is the problem. If the article is deleted, then any recreation without established notability will also be deleted. -- Patchy1 09:01, 30 October 2012 (UTC)
- This article is definitely notable – it's a built-in application on iOS (since the beginning) and OS X (since 10.8 "Mountain Lion"). It just has to be revamped to have a bit better quality and also needs more references to prove its notability. –– Anonymouse321 (talk • contribs) 15:29, 30 October 2012 (UTC)
- I wouldn't say the notability is an issue, but the quality could be improved. Mobobber (talk) 21:53, 5 November 2012 (UTC)
Notes not indexing the content of notes, just the titles?
[edit]The "Limitations" section says
- An important limitation of the Notes application is that it does not index the content of notes, just the titles. This can make it difficult to search for and retrieve important information.
However, on Mountain Lion, at least
- notes don't have a formal "title", the sidebar just shows the first line of the note as a "title";
- the search box and Spotlight search the entire note, just the first line;
and on iOS 3, the same applies, with "the search box" being the global search function, so does this really mean that the sidebar on OS X and the list-of-notes in iOS only shows the first line, so that "search for" refers to scanning the sidebar/list-of-notes rather than searching with the search box, or did this change in Mavericks or in a later version of iOS? Guy Harris (talk) 15:47, 28 May 2014 (UTC)
- OK, somebody just removed that section. Guy Harris (talk) 16:21, 28 May 2014 (UTC)
Game
[edit]<!DOCTYPE html> <html lang="en"> <head>
<meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Tic Tac Toe</title> <style> body { font-family: Arial, sans-serif; display: flex; justify-content: center; align-items: center; height: 100vh; background-color: #f4f4f4; margin: 0; }
.container { text-align: center; }
.board { display: grid; grid-template-columns: repeat(3, 100px); grid-template-rows: repeat(3, 100px); gap: 5px; justify-content: center; margin-bottom: 20px; }
.cell { width: 100px; height: 100px; background-color: white; border: 2px solid #000; font-size: 2rem; display: flex; justify-content: center; align-items: center; cursor: pointer; }
.cell:active { background-color: #e0e0e0; }
.message { font-size: 1.5rem; margin-top: 20px; color: #333; }
.reset-btn { padding: 10px 20px; font-size: 1rem; background-color: #4CAF50; color: white; border: none; cursor: pointer; margin-top: 10px; }
.reset-btn:hover { background-color: #45a049; } </style>
</head> <body>
Tic Tac Toe
<button class="reset-btn" id="resetBtn">Reset Game</button>
<script> const board = document.getElementById('board'); const message = document.getElementById('message'); const resetBtn = document.getElementById('resetBtn');
let currentPlayer = 'X'; let gameActive = true; let boardState = [, , , , , , , , ];
function createBoard() { board.innerHTML = ; boardState = [, , , , , , , , ]; for (let i = 0; i < 9; i++) { const cell = document.createElement('div'); cell.classList.add('cell'); cell.setAttribute('data-index', i); cell.addEventListener('click', handleClick); board.appendChild(cell); } message.textContent = `Player ${currentPlayer}'s Turn`; }
function handleClick(event) { const cellIndex = event.target.getAttribute('data-index'); if (boardState[cellIndex] !== || !gameActive) return;
boardState[cellIndex] = currentPlayer; event.target.textContent = currentPlayer;
if (checkWinner()) { message.textContent = `Player ${currentPlayer} Wins!`; gameActive = false; } else if (boardState.every(cell => cell !== )) { message.textContent = 'It\'s a Draw!'; gameActive = false; } else { currentPlayer = currentPlayer === 'X' ? 'O' : 'X'; message.textContent = `Player ${currentPlayer}'s Turn`; } }
function checkWinner() { const winPatterns = [ [0, 1, 2], [3, 4, 5], [6, 7, 8], [0, 3, 6], [1, 4, 7], [2, 5, 8], [0, 4, 8], [2, 4, 6] ];
return winPatterns.some(pattern => { const [a, b, c] = pattern; return boardState[a] && boardState[a] === boardState[b] && boardState[a] === boardState[c]; }); }
resetBtn.addEventListener('click', () => { currentPlayer = 'X'; gameActive = true; createBoard(); });
createBoard(); </script>
</body> </html> 2400:ADC1:175:DF00:F4A6:AD8D:B443:292C (talk) 14:26, 16 December 2024 (UTC)